Skip to content

Passive Event Listeners #976

@AliaNeedsHelp

Description

@AliaNeedsHelp

Apparently, my game is throwing errors saying
[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
I did some research and turns out this can be fix this by adding the passive flag to document.addEventListener for some browsers.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions