()
| 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()) { |