Skip to content

GEO MAP : Unable to preventDefault inside passive event listener: #28

@gangtao

Description

@gangtao

Unable to preventDefault inside passive event listener: This is a Vistral/Leaflet bug, not something fixable
in the playground. Leaflet registers wheel/touch listeners that call preventDefault() to capture map scroll-zoom, but
React 17+ registers document-level event listeners as passive by default for performance. When Leaflet's handler
fires via React's passive listener, the browser blocks preventDefault() and logs the warning. It's cosmetic — map zoom
still works — but it should be reported to timeplus-io/vistral as a Leaflet integration issue (the fix is {passive:
false} on the wheel listener in the geo chart component).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions