gblazex / smoothscroll-for-websites

Smooth scrolling experience for websites.
Other
853 stars 199 forks source link

Unable to preventDefault inside passive event listener due to target being treated as passive. #84

Closed hemant7405 closed 3 years ago

hemant7405 commented 4 years ago

Hello,

I am facing the preventDefault issue on chrome when I scroll using a mouse wheel, JS errors appear each time the mouse wheel is moved. Is this is a known issue?

Looking forward to hearing from you.

snix0 commented 4 years ago

This issue should be fixed with v1.4.9, where a change was made to support the new standard of some event listeners being passive by default starting from Chrome 73.

You can read more about it from Google here: https://developers.google.com/web/updates/2019/02/scrolling-intervention

gblazex commented 3 years ago

it should work as snix0 said. if you still experience problems please provide sample page/code.