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

Function fireOnMove

core/src/utils/gesture/index.ts:111–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 };
110
111 const fireOnMove = () => {
112 // Since fireOnMove is called inside a RAF, onEnd() might be called,
113 // we must double check hasCapturedPan
114 if (!hasCapturedPan) {
115 return;
116 }
117 isMoveQueued = false;
118 if (onMove) {
119 onMove(detail);
120 }
121 };
122
123 const tryToCapturePan = (): boolean => {
124 if (!gesture.capture()) {

Callers

nothing calls this directly

Calls 1

onMoveFunction · 0.70

Tested by

no test coverage detected