MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / pointerUp

Function pointerUp

core/src/utils/gesture/index.ts:178–200  ·  view source on GitHub ↗
(ev: UIEvent | undefined)

Source from the content-addressed store, hash-verified

176 // END *************************
177
178 const pointerUp = (ev: UIEvent | undefined) => {
179 const tmpHasCaptured = hasCapturedPan;
180 const tmpHasFiredStart = hasFiredStart;
181 reset();
182
183 if (!tmpHasFiredStart) {
184 return;
185 }
186 calcGestureData(detail, ev);
187
188 // Try to capture press
189 if (tmpHasCaptured) {
190 if (onEnd) {
191 onEnd(detail);
192 }
193 return;
194 }
195
196 // Not captured any event
197 if (notCaptured) {
198 notCaptured(detail);
199 }
200 };
201
202 const pointerEvents = createPointerEvents(finalConfig.el, pointerDown, pointerMove, pointerUp, {
203 capture: false,

Callers 3

enableFunction · 0.70
handleTouchEndFunction · 0.70
handleMouseUpFunction · 0.70

Calls 3

calcGestureDataFunction · 0.85
resetFunction · 0.70
onEndFunction · 0.70

Tested by

no test coverage detected