-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Description
After testing PinchGestureHandler in react-native-gallery-toolkit I found that on the real device Pinch gesture is active even though we have only a single finger on the screen. This breaks my focal point logic which is working as expected on Android.
Screenshots
As soon as I release one finger - it jumps because now the focal point is not the point between fingers, but that single finger location.
But it should just transition to state "END" instead.
Steps To Reproduce
- Run pinch example
- Add log to onGestureEvent of PinchHandler
onGestureEvent={(evt) => console.log(evt.nativeEvent.numberOfFingers)}
- Do the pinch then release one finger and move it
- See that it fires even with 1 finger pressed after wi
Expected behavior
The gesture should be in the state "end" as soon as the user releases one finger – just like on Android
Actual behavior
The gesture remains active even when the user released one finger
Snack or minimal code example
Run the example app
Package versions
- React: 16.13.1
- React Native: 0.63.3
- React Native Gesture Handler: 1.8.0
philvoyernhannah
