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

Minimum size for boxzoom (suggestion) #6132

Closed
stevage opened this issue Feb 12, 2018 · 1 comment
Closed

Minimum size for boxzoom (suggestion) #6132

stevage opened this issue Feb 12, 2018 · 1 comment

Comments

@stevage
Copy link
Contributor

stevage commented Feb 12, 2018

In my map I have an interaction where shift-clicking does something. One issue is that if the mouse moves even slightly during the process of shift-clicking, it triggers a box-zoom, to a tiny box.

My suggestion: don't trigger a box-zoom if the box is less than X by X pixels, where X is something like 20.

There doesn't seem to be any way for me intercept the boxzoom handler and reject it, so my workaround for now is to disable boxzoom any time that the shift-click feature is available.

@jfirebaugh
Copy link
Contributor

intercept the boxzoom handler and reject it

Thinking about a potential way to do this in #3290.

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

No branches or pull requests

3 participants