You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unexpected map rotation when zooming on mobile devices
Description
Hello flutter_map team,
I noticed an unexpected behavior when using flutter_map on mobile devices.
When performing a pinch-to-zoom gesture, the map sometimes rotates automatically even though the user did not intend to rotate the map.
Steps to reproduce
Open a Flutter application using flutter_map.
Display a map on an Android or iOS device.
Use two fingers to perform a normal pinch zoom gesture.
Slightly move the fingers during the zoom action.
Expected behavior
The map should only zoom in/out and keep the current rotation unchanged.
Actual behavior
The map rotates during the zoom gesture without an explicit rotation gesture from the user.
Environment
Package: flutter_map
Platform: Android / iOS
Device: Physical mobile device
Flutter version: [add version]
flutter_map version: [add version]
Possible improvement
It could be useful to add a gesture threshold or a configuration option to disable accidental rotation during pinch zoom, especially on mobile devices.
Thank you for your work on this package.
unintentional_rotation._map.mp4
How can we reproduce it?
How can we reproduce it?
Create a Flutter app using flutter_map.
Add a FlutterMap widget with default gesture interactions enabled.
Run the app on a physical mobile device (Android/iOS).
Place two fingers on the map and perform a normal pinch-to-zoom gesture.
While zooming, slightly change the distance/position of the fingers (without intentionally rotating).
The map may start rotating even though no rotation gesture was intended.
What is the bug?
Unexpected map rotation when zooming on mobile devices
Description
Hello flutter_map team,
I noticed an unexpected behavior when using
flutter_mapon mobile devices.When performing a pinch-to-zoom gesture, the map sometimes rotates automatically even though the user did not intend to rotate the map.
Steps to reproduce
flutter_map.Expected behavior
The map should only zoom in/out and keep the current rotation unchanged.
Actual behavior
The map rotates during the zoom gesture without an explicit rotation gesture from the user.
Environment
Possible improvement
It could be useful to add a gesture threshold or a configuration option to disable accidental rotation during pinch zoom, especially on mobile devices.
Thank you for your work on this package.
unintentional_rotation._map.mp4
How can we reproduce it?
How can we reproduce it?
flutter_map.FlutterMapwidget with default gesture interactions enabled.The map may start rotating even though no rotation gesture was intended.
Do you have a potential solution?
No response