mapbox / mapbox/mapbox-gl-draw

Map box draw prevents disabling of zoom on double click

Open
#795 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

mapbox-gl-js version: v0.45.0
mapbox-gl-draw version:v1.0.9

### Steps to Trigger Behavior

1.initialise map and call map.doubleClickZoom.disable();
2.double click on map

### Expected Behavior
map is not zoomed
### Actual Behavior
map is zoomed

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

Reproduce the issue with mapbox-gl-js v0.45.0 and mapbox-gl-draw v1.0.9, calling map.doubleClickZoom.disable() before double-clicking the map. Inspect mapbox-gl-draw's double-click handling and verify that the map does not zoom while drawing interactions remain functional.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.