mapbox / mapbox/mapbox-gl-draw
touch event is not compatible with mapbox-gl v1.10.1 and above
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
When I use the version described below, the mobile terminal loads mapbox-gl-draw, the console will report an error "Unable to preventDefault inside passive event listener invocation". I quickly touch the screen twice, and then move the map on the second touch , There will be even more weird phenomena. If I use mapbox-gl-js v1.10.1 or lower, there will be no problem
**mapbox-gl-js version**:v2.2.0
**mapbox-gl-draw version**:v1.1.1
Contributor guide
Research direction
Start by reproducing the passive-listener error on a mobile terminal with mapbox-gl-js v2.2.0 and mapbox-gl-draw v1.1.1, then compare the behavior with mapbox-gl-js v1.10.1 or lower. Trace the touch-event handling involved in mapbox-gl-draw and verify that the double-touch interaction no longer reports the error or produces the described map behavior.
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
- Needs clarification
- Newbie friendliness
- 30/100