mapbox / mapbox/mapbox-gl-draw
Draw is overriding cooperative gestures option
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
**mapbox-gl-js version**: 2.11.0
**mapbox-gl-draw version**: 1.3.0
### Steps to Trigger Behavior
1. Open https://uv08h1.csb.app/ on a mobile device. Code available at https://codesandbox.io/s/nervous-water-uv08h1?file=/src/index.js
### Behavior
The map partially behaves at is should when [cooperativeGestures](https://docs.mapbox.com/mapbox-gl-js/example/cooperative-gestures/) are enabled: Two fingers are needed to zoom and pan, however the informative overlay is never shown and if we just use one finger to scroll, the map traps the scroll.
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
Reproduce the behavior on a mobile device using the CodeSandbox example at src/index.js and compare it with the cooperativeGestures example in the Mapbox GL JS documentation. Investigate why the informative overlay is absent and one-finger scrolling is trapped despite two-finger zoom and pan working. Done means cooperative gesture behavior works as expected with mapbox-gl-draw enabled.
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
- 35/100