Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passive Event Listeners #976

Closed
AliaNeedsHelp opened this issue Feb 19, 2021 · 3 comments
Closed

Passive Event Listeners #976

AliaNeedsHelp opened this issue Feb 19, 2021 · 3 comments

Comments

@AliaNeedsHelp
Copy link

AliaNeedsHelp commented Feb 19, 2021

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.

@francoispeyret
Copy link

do you have a sample code?

take care

@liabru
Copy link
Owner

liabru commented Feb 27, 2021

@AliaNeedsHelp I can't reproduce this on any of the examples, can you share the code that shows the issue?

@Errorbot1122
Copy link

Errorbot1122 commented Mar 2, 2021

ya @AliaNeedsHelp you need to show your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants