jquery.nicescroll icon indicating copy to clipboard operation
jquery.nicescroll copied to clipboard

Chrome: Added non-passive event listener to a scroll-blocking 'wheel' event.

Open GabbasovDinar opened this issue 7 years ago • 3 comments

When I use the plugin, I have warning message on the chrome console:

[Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

Is passive event support available? If not, will there be support?

GabbasovDinar avatar Oct 19 '18 09:10 GabbasovDinar

In Google Lighthouse Audit we get : Does not use passive listeners to improve scrolling performance Consider marking your touch and wheel event listeners as passive to improve your page's scroll performance. Passive Event Listeners

Should I put true on "jquery.nicescroll.js" line 2420 ? var passiveSupported = false;

nicolasambroise avatar Dec 19 '18 13:12 nicolasambroise

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>

In my project, Google Chrome will also have such an error, I think this is a problem, and I tried to use the latest version, and did not solve the problem, the latest version has been added var passiveSupported = false;

caijwei avatar Apr 16 '19 02:04 caijwei

npm i tolc/jquery.nicescroll#master

install it from specific repository temporarily did the trick

kidzen avatar Mar 27 '21 20:03 kidzen