Skip to content
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

Enable panning inertia so panning feels smoother #6968

Open
corradio opened this issue Jul 9, 2024 · 1 comment
Open

Enable panning inertia so panning feels smoother #6968

corradio opened this issue Jul 9, 2024 · 1 comment

Comments

@corradio
Copy link
Member

corradio commented Jul 9, 2024

Describe the bug
On Google Maps, after the map keeps panning for a short while after having been dragged (a so-called "inertia" effect).
This makes the experience of scrolling the map easier as it enables to reach far-away areas faster.
The setting has been disabled here. Would be great to re-enable it!
More info about the maxSpeed option here: https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/DragPanOptions/

To Reproduce
Steps to reproduce the behavior:

  1. Open app
  2. Drag map and release
  3. Map immediately stops being dragged

Expected behavior
Map should continue panning for a short while.

@VIKTORVAV99
Copy link
Member

I think that was disabled due to it making the exchange arrows behave all weird. But I've been exploring an alternate way to render them which should allow us to enable this setting.

There was just some issues with scaling that I need to figure out with the new method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants