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

Some pinch gestures cause map to pan #295

Open
haphut opened this issue May 31, 2020 · 0 comments
Open

Some pinch gestures cause map to pan #295

haphut opened this issue May 31, 2020 · 0 comments

Comments

@haphut
Copy link

haphut commented May 31, 2020

Describe the bug
When pinching, the map often pans unexpectedly and sometimes at considerable speed. The user gets confused about why the map moved and what the viewport ends up showing.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Interactive map example in the documentation: https://urbica.github.io/react-map-gl/#!/Components/MapGL/MapGL/3
  2. Quickly pinch zoom and let go with one finger just slightly before the other. (Zoom in and out repeatedly if you do not succeed on the first try.)
  3. The map pans.

Expected behavior
The map does not pan.

Mapbox GL does not exhibit the same behaviour: https://docs.mapbox.com/mapbox-gl-js/example/simple-map/

We could not reproduce it on visgl/react-map-gl either: https://visgl.github.io/react-map-gl/examples/locate-user

Smartphone (please complete the following information):

  • Device: Google Pixel 3a, OnePlus 5T, Samsung A3
  • OS: AOSP 10, OxygenOS 9.0.11, Samsung Experience 9.0 (Android 8.0.0)
  • Browser: Fennec F-Droid (Firefox), Chrome, Chrome
  • Version: 68.8.0, 83, 81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant