-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
Default threshold for the MoveGestureDetector is zero #2792
Comments
I noticed that the various By setting a breakpoint during the map initialization, I noticed that those various So, wherever these defaults are set, the move gesture should also get some minimum threshold. |
MapLibreMap.OnMoveListener::onMoveBegin
is also called on tap
Here maybe? Line 317 in bf40cdf
|
Not sure, maybe at that point, too. Reading the code vertically, it looks like the |
Describe the bug
onMoveBegin(detector: MoveGestureDetector)
in aMapLibreMap.OnMoveListener
is also called when the map is not actually moved but when the user just taps the map.To Reproduce
Register an
MapLibreMap.OnMoveListener
and log something ononMoveBegin
. Start the app and tap the map. Something will be logged.Expected behavior
onMoveBegin(detector: MoveGestureDetector)
is only called when the map is movedPlatform information (please complete the following information):
Additional context
In StreetComplete, there is a follow-me mode. I.e. the map automatically centers on the current user's location. This is turned off when the user moves the map manually but it should not turn off when the user just taps the map.
Cause of this issue: streetcomplete/StreetComplete#5824
The text was updated successfully, but these errors were encountered: