Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PinchGestureHandler State.BEGAN inconsistency on Android/iOS #553

Closed
wcandillon opened this issue Apr 9, 2019 · 1 comment · May be fixed by #1798
Closed

PinchGestureHandler State.BEGAN inconsistency on Android/iOS #553

wcandillon opened this issue Apr 9, 2019 · 1 comment · May be fixed by #1798

Comments

@wcandillon
Copy link

wcandillon commented Apr 9, 2019

On iOS, the value of focalY is correct when State.BEGAN. However on Android, this value is always 0. Only in State.ACTIVE the focalY value is correct. Please let me know if I can help with this issue.
Interestingly enough this doesn't happen for the scale parameter.

For people having similar issues, here is a potential workaround (to adap to your needs because scale is not affected by this issue):

const pinchBegan = Platform.OS === "ios"
      ? eq(state, State.BEGAN)
      : eq(diff(state), State.ACTIVE - State.BEGAN);

Possible duplicate: #546

@wcandillon
Copy link
Author

closing as a duplicated of #546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant