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

Disable Double Tap to Zoom #86

Open
jjstobbe opened this issue Feb 21, 2024 · 1 comment
Open

Disable Double Tap to Zoom #86

jjstobbe opened this issue Feb 21, 2024 · 1 comment

Comments

@jjstobbe
Copy link

It would be wonderful if double tap did not always zoom in. I have a use case where double tap is performing a different action and I do not want it to zoom in, however I'm seemingly unable to turn off the double-tap to zoom behavior.

I can set the zoomStep to 0 which will partly accomplish what I want, but when double tapping while at the max zoom level it will reset back to the initial zoom level (code here).

I want to override that double tap behavior to never zoom. Can we expose a way to disable this behavior?

@davide-granello
Copy link

I used this workaround to disable it:
doubleTapDelay={1}

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

2 participants