-
-
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
[BUG] Gestures apparently less responsive after long press #1695
Comments
Also see #1581, which details the particular issues that occur on the web (may be outdated). |
Couldn't reproduce. Tested on Windows 11 and on Chrome on windows 11.
Aufzeichnung.2023-11-02.103750.mp4 |
The problem persist, but only in the following circumstances:
onLongPress: (_, latlng) async {
if (eventStatus == 'live' || eventStatus == 'pre-event') {
await launchUrl(Uri.parse('https://embed.windy.com/embed2.html?lat=${latlng.latitude}&lon=${latlng.longitude}'
'&detailLat=${latlng.latitude}&detailLon=${latlng.longitude}'
'&width=$screenWidth&height=$screenHeight&zoom=11&level=surface&overlay=wind&product=ecmwf&menu=&message=true&marker='
'&calendar=now&pressure=&type=map&location=coordinates&detail=true&metricWind=bft&metricTemp=%C2%B0C&radarRange=-1'));
}
} It works on web in Edge on Android, but the first interaction with the map after coming back to the browser window with the map is irresponsive. Edit: did some more testing. Issue is resolved after opening a drop down list somewhere in a menu.... but then is back again. Very strange behaviour... See: https://tt.zeilvaartwarmond.nl/FTest/?event=Beurtveer/2024 |
Thanks for the additional information. I was able to reproduce it now. |
@Henk-Keijzer I'm closing this issue because this issue is a general flutter web issue. For context: the app fails to recognize the end of the long press gesture when a new tab get opened. After returning to the app. I think what happens is that the GestureRecognizer thinks the button is still pressed and doesn't listens to another key down event. As a workaround you could open an |
What is the bug?
clicks on the map work fine until a longpress on the map is triggered (and the function executed). After the longpress the map can still be moved around and zoomed in/out, but single clicks and longpresses do not result in the attached function to be called
How can we reproduce it?
set up map with both single click and longpress functions defined. After a single click, subsequent click work, but once you do a longpress, the single click and longpress no loinger work
Do you have a potential solution?
no
Platforms
windows 11
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
The text was updated successfully, but these errors were encountered: