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

DoubleTapZoom doesn't work,when the value of minScale is between doubleTapZoomScale and doubleTapZoomScale * 0.9 #284

Closed
lomoya90 opened this issue Jan 17, 2017 · 1 comment

Comments

@lomoya90
Copy link

DoubleTapZoom doesn't work,when the value of minScale is between doubleTapZoomScale and doubleTapZoomScale * 0.9.

boolean zoomIn = scale <= doubleTapZoomScale * 0.9;
float targetScale = zoomIn ? doubleTapZoomScale : minScale();

@davemorrissey
Copy link
Owner

I think this is a rare edge case but I've added a quick fix - if the current scale is at the minimum, a double tap is always interpreted as a zoom in.

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