Skip to content

Unable to preventDefault inside passive event listener invocation. #1019

@radekdob

Description

@radekdob

Hello,

mapbox-gl-js version: 1.12
mapbox-gl-draw version: 1.2.0

Steps to Trigger Behavior

  1. Add Mapbox Draw control to mapbox map.
  2. Open in browser and switch to touch device.
  3. 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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugeventsEvents that are fired when the user interacts with the maphas PRtouch-specific

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions