-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
fix: prevent double-tap-drag zoom gesture emitting a tap event #1796
fix: prevent double-tap-drag zoom gesture emitting a tap event #1796
Conversation
I tested this on mobile and web and it seems to work well, marking this as ready for review now. |
Sorry I haven't had time to record the videos earlier. I was able to reproduce the following bug on the master branch (pre merge):
And here is a showcase when performing a Bug_.onTap.callbacks.called.twice.Mit.Clipchamp.erstellt.1.mp4 |
This comment was marked as outdated.
This comment was marked as outdated.
@josxha thanks for finding those issues, I looked at your videos and tried to reproduce the problem on my computer - it took me a lot of tries to actually notice the problem because it was random:
Were you also experiencing this randomness on your machine? |
(After retesting, I could reproduce without randomness as far as I could see.) This PR has been reverted by #1799. |
I had some struggle to reproduce it too every time, sometimes i even messed up because I failed to perform the FYI: There is an rewrite on the gesture system in #1733 that will get introduced with the next major flutter_map version (fingers crossed :D ). If you want you can check if the bug occurs there too, I tried it real quick and couldn't reproduce it on that branch. |
@josxha thanks for linking your PR here. This is a tricky problem for sure, I spent about an hour wrestling with the I'll wait for your PR changes to land and I'll test those instead 👍 |
(Just wanted to say thanks @androidseb (even if it didn't exactly go to plan this time), and my apologies for not testing correctly, I completely misread/remembered the gesture these changes applied to.) |
This change fixes a minor bug in the gesture system: when initiating a double-tap-drag-zoom gesture, a tap on the map would be registered through the
MapOptions.onTap
callback.