mapbox / mapbox/mapbox-gl-draw
Map navigation becomes unresponsive when selecting overlapping polygons
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
When a map contains two or more overlapping polygons, attempting to click on the intersection area causes map navigation (dragging with the mouse) to stop working. Keyboard navigation and mouse wheel zooming continue to function as expected.
This behavior has been reproduced using the Mapbox GL Draw Example
https://github.com/user-attachments/assets/f481f732-da73-413f-8eea-a3997536add3
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 linked Mapbox GL Draw Example, using overlapping polygons and clicking their intersection before dragging. Then trace the mouse interaction and polygon-selection handling in the repository; no source file or test is named in the report. Done means dragging navigation continues to work after selecting the overlapping area, while keyboard navigation and wheel zoom remain unaffected.
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
- 38/100