We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaaee56 commit 8ff90a1Copy full SHA for 8ff90a1
packages/use-long-press/src/lib/use-long-press.ts
@@ -209,7 +209,7 @@ export function useLongPress<
209
// First call callback to allow modifying event position
210
onMove?.(event, { context });
211
212
- if (cancelOnMovement && startPosition.current) {
+ if (cancelOnMovement !== false && startPosition.current) {
213
const currentPosition = getCurrentPosition(event);
214
215
if (currentPosition) {
0 commit comments