-
Notifications
You must be signed in to change notification settings - Fork 609
Unable to preventDefault inside passive event listener invocation. #1019
Copy link
Copy link
Labels
bugeventsEvents that are fired when the user interacts with the mapEvents that are fired when the user interacts with the maphas PRtouch-specific
Description
Hello,
mapbox-gl-js version: 1.12
mapbox-gl-draw version: 1.2.0
Steps to Trigger Behavior
- Add Mapbox Draw control to mapbox map.
- Open in browser and switch to touch device.
- Click on map and check console
Just open official web and switch to device toolbar in developer console. Touch a map and check console.
https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
Expected Behavior
Should not generate that issue. If any mapbox layers was added, they are not reacting to click/touch event. Only drawing tools and features which was drawed are "alive".
Actual Behavior
After clicking on map when mapbox draw was added as control, mapbox draw generates error.
Error text :
" Unable to preventDefault inside passive event listener invocation."
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugeventsEvents that are fired when the user interacts with the mapEvents that are fired when the user interacts with the maphas PRtouch-specific