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

Change in handling coordinates in FlingGestureHandler #2253

Merged
merged 3 commits into from
Oct 4, 2022

Conversation

m-bert
Copy link
Contributor

@m-bert m-bert commented Oct 3, 2022

Description

Right now FlingGestureHandler uses coordinates from event. Because of that, fling can activate after adding another pointer instead of moving the one that started gesture. This PR adds keyPointer field, which holds id of pointer that started fling. Handler now compares changes only in keyPointer position.

Test plan

Tested on example app

@m-bert m-bert requested a review from j-piasecki October 3, 2022 16:02
@m-bert m-bert merged commit d22f5ed into main Oct 4, 2022
@m-bert m-bert deleted the @mbert/web-fling-fix branch October 4, 2022 12:49
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.

None yet

2 participants