PinchHandler not working on Android in conjunction with scrollview/flatlist #1082
Labels
Area: Gesture handlers
This issue is related to problems with gesture handlers
Platform: Android
This issue is specific to Android
I am using RNGH 1.6.1 and RN 0.62.2
I am trying to use the PinchGestureHandler for my react native project. I need a pinch for a scrollview/flatlist.
I have done the simplest test implementation, wrapping the flatlist, and connecting the event listeners to a console.log so I can observe the state changes in the handler as I make the gesture
On IOS this works fine.
On Android, I can see the gesture enter the BEGAN state but 95% of the time it then CANCELS. Only very rarely, with infinite care with my gesture, can I get the pinch state to become ACTIVE.
From my observations, if the scrollview moves at all, it causes the cancel. So it seems to me that the scrollview is receiving the gesture events simultaneously as the pinch handler, and recognising a scroll most of the time, resulting in the pinch getting cancelled. on IOS, with the same code, its fine - the scrollview does not scroll while the pinch handler is interested in the gesture.
I do not have two gesture handlers active, which would cause this according to your documentation. Just a flatlist. Something wrong with android impl?
The text was updated successfully, but these errors were encountered: