-
Notifications
You must be signed in to change notification settings - Fork 981
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
Zoom buttons zoom twice when tapped slowly #1733
Comments
Hi @hauke96! |
Hi, I think |
Fixed by #1775. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Type
[ ] Question
[x] Bug
[ ] Improvement
[ ] Build system related
[ ] Performance
[ ] Documentation
Description and/or steps/code to reproduce the problem
When tapping a zoom button very slowly, there is a zoom in/out happening on the
ACTION_DOWN
and also on theACTION_UP
event, so there are two zooms happening. This doesn't feel right and also confused an user of an app of mine.As far as my research goes this is caused by pull request #1471 in the
CustomZoomButtonsDisplay
by this line. Here bothUP
andDOWN
events are considered a touch which causes theCustomZoomButtonsController
to trigger twoonZoom()
calls on the map controller (see e.g. here).If this is not a bug, maybe it's better to somehow configure the behavior on the
CustomZoomButtonsController
class?Steps to reproduce
Environment
If it's a bug, version(s) of android this affects:
As far as I know all versions of android are affected.
Version of osmdroid the issue relates to:
6.1.8
The text was updated successfully, but these errors were encountered: