-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
I am working with PinchGestureHandler and using focalX/focalY variables to calculate translateX/translateY values. Everything works fine during the gesture.
When the gesture finishes, I have set up curX and curY variables, to which I offload the current values of translateX/translateY (derived from the focal coordinates). However, I have noticed that the focalX and focalY results reported to PinchGestureHandler's onHandlerStateChange do not match the values reported to the Animated.Values passed in through onGestureEvent.
On iOS this issue does not occur - the values match up. On Android however, because the values do not match up I end up with a jerky effect when the gesture resolves.
I was able to compare the values by calling __getValue() on the Animated.Values in onHandlerStateChange. On iOS all the values line up, but on Android only the scale values match - the focalX and focalY values do not.
Is this a known issue? Any ideas as to what might be causing it?