Skip to content

Commit 25a8651

Browse files
committed
Cancel holding on touch move
When a user is scrolling, it would count as a hold of the set button, however it should cancel the hold if they move
1 parent d2d1540 commit 25a8651

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/components/presentation/holdable.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export default function Holdable({
5252
onPointerUp: exitHold,
5353
onPointerLeave: exitHold,
5454
onTouchEnd: exitHold,
55+
onTouchMove: exitHold,
56+
onPointerMove: exitHold,
5557
};
5658

5759
useEffect(() => {

0 commit comments

Comments
 (0)