mapbox / mapbox/mapbox-gl-draw

Map navigation becomes unresponsive when selecting overlapping polygons

Open
#1,438 0 comments 0 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.