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

Workaround UIPinchGesture number of touch bug #2025

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

tallytalwar
Copy link
Member

This just adds a check to make sure "Changed" state is ignored if the number of touches are < 2!

- Based on the documentation https://developer.apple.com/documentation/uikit/uipinchgesturerecognizer, pinch gesture
state should not be set to "Changed" if "both" fingers are not pressed, which does not seem to be the case.
Copy link
Member

@matteblair matteblair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@matteblair matteblair merged commit c3ac543 into master Jan 31, 2019
@matteblair matteblair deleted the ios-pinch-gesture-1-finger branch January 31, 2019 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants