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

Min pan distance #452

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mattnathan
Copy link

This change makes it possible to configure a minimum distance that is used as a threshold to determine whether to begin a pan or zoom operation when triggered via pointer events.

This option can help in situations when small movements during a click/tap cause the element to move slightly which is a little off putting.

Fixes: #441

@mattnathan
Copy link
Author

I haven't added any tests (or checked that they are working) - I'm using this PR as a base for the change to be applied and as a place to discuss the approach. Hope that's ok.

This change makes it possible to configure a minimum distance that is used as a threshold to determine whether to begin a pan or zoom operation when triggered via pointer events.

This option can help in situations when small movements during a click/tap cause the element to move slightly which is a little off putting.
Base automatically changed from master to main January 11, 2021 21:53
@spacecowgoesmoo spacecowgoesmoo mentioned this pull request May 17, 2022
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.

1 participant