mapbox / mapbox/mapbox-gl-draw
Clicking a feature 4 or more times quickly it makes it so you cannot move the map
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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