Skip to content

Commit

Permalink
chore: fix delta compare
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Sep 3, 2023
1 parent 52bbffc commit 6c2f0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fiber/src/native/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function createTouchEvents(store: UseBoundStore<RootState>): EventManager
onPanResponderMove: (e) => handleTouch(e, 'onPointerMove'),
onPanResponderEnd: (e, state) => {
handleTouch(e, 'onPointerUp')
if (Math.hypot(state.dx, state.dy) > 20) handleTouch(e, 'onClick')
if (Math.hypot(state.dx, state.dy) < 20) handleTouch(e, 'onClick')
},
onPanResponderRelease: (e) => handleTouch(e, 'onPointerLeave'),
onPanResponderTerminate: (e) => handleTouch(e, 'onLostPointerCapture'),
Expand Down

0 comments on commit 6c2f0c1

Please sign in to comment.