gblazex / smoothscroll

An extension for Google Chrome (150,000+ users)
https://chrome.google.com/webstore/detail/smoothscroll/nbokbjkabcmbfdlbddjidfmibcpneigj
Other
475 stars 98 forks source link

Since Chrome 73.0.3683.75 Update, middle mouse scrolling doesn't work properly #182

Closed iori3000 closed 5 years ago

iori3000 commented 5 years ago

Since Chrome 73.0.3683.75 Update middle mouse scrolling doesn't work properly

stanczew commented 5 years ago

Probably due to: https://developers.google.com/web/updates/2019/02/scrolling-intervention

It looks like SmoothScroll tries do do its thing (i.e. scroll a defined amount), but gets "bounced back" and then only standard Chromium scrolling is applied. Plus I can see the "[Intervention] Unable to preventDefault …" log every time I use the scroll wheel with the extension enabled.

artik commented 5 years ago

Affected also, using Chrome Linux. I was about to report it when I sew Iori3000 did. Hope will be solved :)

stanczew commented 5 years ago

The fix suggested in the article works:

 function addEvent(type, fn) {
-    window.addEventListener(type, fn, false);
+    window.addEventListener(type, fn, {passive: false});
 }

There is already a pull request with this change: #164

gblazex commented 5 years ago

fixed in latest version