fleaflet / flutter_map

A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
https://pub.dev/packages/flutter_map
BSD 3-Clause "New" or "Revised" License
2.74k stars 861 forks source link

[FEATURE] Prevent pinch move while pinch zooming #1905

Open translibrius opened 4 months ago

translibrius commented 4 months ago

What do you want implemented?

Hey, love the package!

Simillar to #1396 I would love to have a way to disable pinch move while zooming. This is specifically an issue on a laptop's trackpad (windows tested) when a user wants to zoom in via trackpad, but that pans the map somewhere else.

What other alternatives are available?

Simply disabling the pinch move flag, however then the user will be unable to move the map with two fingers.

Can you provide any other information?

I have video footage for refrence. As you can see the map moves when zooming.

https://github.com/fleaflet/flutter_map/assets/54362693/19bb5f2a-08fc-4161-b95f-4407485deb60

I love this package, so I might take a look at potentially doing a PR for this if it's not too complicated.

Severity

Annoying: Currently have to use workarounds