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

DualPointerGesture GestureEventData: recalculate global parameters #18

Open
biodiv opened this issue Aug 4, 2022 · 0 comments
Open

Comments

@biodiv
Copy link
Owner

biodiv commented Aug 4, 2022

Scenario: user pans element with one finger to another place. Then adds second finger and pinches. The GestureEventData.global.scale is then sometimes off because the initial position of the first finger is used in the calculation.
Using the position of the finger when the gesture (pinch) is detected for the first time instead of when the pointer hit the surface for the first time for GestureEventData.global should fix this problem.

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

No branches or pull requests

1 participant