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.
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/5745543795965952I did some research and turns out this can be fix this by adding the
passiveflag todocument.addEventListenerfor some browsers.