visgl/react-map-gl

[Bug] Quickly double-clicking on maps prevents zooming in

gemueselasagne opened this issue · 1 comments

Description

Map stays at same zoom level when trying to quickly zoom in with quick back-to-back double-clicks

DoubleClickingMap.mp4

Expected Behavior

Quickly double-clicking on a map should zoom into the map even if an initiated zoom is still animating. Behaviour just like e.g. Google Maps

Steps to Reproduce

Double-click quickly in any map e.g. here: https://visgl.github.io/react-map-gl/examples/layers

Environment

  • Framework version: LATEST
  • Map library: LATEST
  • Browser: Safari
  • OS: macOS 14.2.1

Logs

No response

This library is a wrapper of the map library, it does not handle any user inputs. You should ask in mapbox-gl's repo.