-
-
Notifications
You must be signed in to change notification settings - Fork 873
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
[BUG] MacOS: GestureDetector
s stop responding after zooming
#1572
Comments
Out of interest, could you try the examples on the LatLngToScreenPoint flutter_map example (that examples places an icon where you click on the screen). |
So I tried it out and in this case, it doesn't register the event at all. So in the video below. it seems to register the first three tap events, but at 0:12 I try clicking an area and there is no response whatsoever. The same goes for the two points clicked on at 0:16 & 0:18 seconds. lat_lng_to_screen_bug.mp4 |
Hmm, I can't seem to reproduce this. Running on Windows 11 (x64) and the live web demo, zoom does not seem affect the tap response. I can't figure out why this might be, but the only difference I can immediately see is your zoom seems to be smoothed - other than the MacOS platform, but you said you could reproduce on Windows. Is there zoom smoothing on Windows as well? Can you also try on the live web demo? |
My sincere apologies @JaffaKetchup . I was testing it on Windows but on an older version of an example app that wasn't working on the latest version of flutter or flutter maps, and I can't seem to reproduce the error on Windows 11 now. I also tried the live demo app and I used the double click to zoom but I also did not run into an error here. Sorry for the confusion. |
No problem. Does this still occur on MacOS? |
Yes. I tested it again to make sure, and I still have the problem. The summary from running flutter doctor: • No issues found! |
Ok, is there any way you can test without zoom smoothing? I'm assuming that's part of the mouse or its drivers. |
GestureDetector
s stop responding after zooming
I'll check if there is a workaround without the zoom smoothing and let you know. |
im facing the same issue on IOS/Android, ontap on markers doesnt work anymore after i zoom in. And I have just noticed something new, scroll zoomin(when I tap my finger once and then drag the map) taps wokrs, after scroll zoom in and scroll zoom out but not with double finger zoom in |
Could flutter/flutter#140730 be related? In general flutter itself seems quite messy on the touch/gesture side right now. |
Good spot, certainly seems very similar! |
It could be fixed by my patch flutter/engine#49424, although this is only for trackpad pinch, if you have any problem with iOS/Android touchscreen, it is something else... |
We're going to close this for now, as it will be assumed fix and will require re-verification if the issue still occurs. Thanks @moffatman! |
What is the bug?
Problem
When zooming in and out of flutter maps sometimes it occurs that widgets that use Gesture detectors internally such as Buttons, Attribution Widgets, and Draggable markers stop responding. I initially noticed this problem when using flutter draggable markers, so I reported an issue here: ibrierley/flutter_map_dragmarker#27, and after some help and testing, I realized there was a problem with other widgets that use Gesture Detectors on Flutter Maps as well.
There is no specific trigger as to when this happens. I have tested it on macOS and Windows with the latest version of flutter maps and the problem still exists.
Flutter and Dart version used:
Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 796c8ef792 (2 weeks ago) • 2023-06-13 15:51:02 -0700
Engine • revision 45f6e00911
Tools • Dart 3.0.5 • DevTools 2.23.1
Plugins:
flutter_map: 5.0.0
latlong2: 0.9.0
url_launcher: 6.1.10
Example
Here's a minimalistic example to expose what's happening.
I've included a button at the bottom (+) that displays an alert dialog and also a SimpleAttributionWidget with the link to open Open Street Maps Contributors like this:
I'm using the mousepad to zoom in and out of the maps, and in the first video below you'll notice, that in the beginning, I click the + button and a pop-up button appears, but at around 7 seconds I try clicking the same button and there is no response. Also when clicking on OpenStreetMap Contributors the link doesn't open.
zoom_in_bug_compressed.mp4
A similar example is in the video below. I click the + and it works as expected at the beginning and at around 3 seconds, but at 8 seconds it doesn't work again.
zoom_in_bug_2.mp4
How can we reproduce it?
To reproduce the bug in the example shown above use the code below:
As an alternative, this can be tested on the example app of flutter_maps and even the example of flutter_map_dragmarker.
Do you have a potential solution?
No response
Platforms
Windows 11(x64), macOS
Severity
Minimum: Allows normal functioning
The text was updated successfully, but these errors were encountered: