(ev: UIEvent | undefined)
| 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, |
no test coverage detected