mapbox / mapbox/mapbox-gl-draw

Clicking a feature 4 or more times quickly it makes it so you cannot move the map

Open
#1,366 8 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

I ran into a bug that occurs on v1.5.0 but not on v1.4.3

When I draw a polygon and click it 4 or more times in quickly I can no longer move the map.

I can still zoom, pan, tilt but click and drag will not move the map.

I was able to reproduce on both the mapbox and maplibre docs which are hosting the latest 1.5.0 version

https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
https://maplibre.org/maplibre-gl-js/docs/examples/mapbox-gl-draw/

**Reproduction Steps**
- Draw a polygon
- Click it 4 times quickly
- Try to move the map

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the Mapbox GL Draw example and the MapLibre example linked in the report, comparing v1.5.0 with v1.4.3. Draw a polygon, click it four times quickly, and verify that click-and-drag map movement still works after the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.