openspacelabs / react-native-zoomable-view

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
MIT License
205 stars 57 forks source link

Issue with _handlePanResponderMove: Active touch count remains at 1 while attempting pinch and zoom on iOS. #102

Open Shivangigupta01 opened 4 months ago

Shivangigupta01 commented 4 months ago

I am using @openspacelabs/react-native-zoomable-view to implement pinch and zoom in my react native app.

When i am trying to zoom the view in iOS keeping two fingers simultaneously and then trying to zoom, the _handlePanResponderMove gets called, but the value for gestureState.numberActiveTouches comes out to be 1, as a result of which, _handlePinching doesn't get called.

How can i fix this issue?

Version: react: 18.2.0 react-native: 0.72.6 @openspacelabs/react-native-zoomable-view : 2.1.6

New arch enabled

This is only happening in iOS