Hacker News new | ask | show | jobs
by faitswulff 3365 days ago
Hm, this isn't working for me. I've been searching for a way to undo scrolljacking for a while, so I'm curious how to get it to work. What browser are you using?

I tried in Chrome (56.0.2924.87) and Firefox (forgot what version and now it's updating). Firefox doesn't even respond to `getEventListeners` and in Chrome I'm seeing `.scroll` instead of `.wheel`.

2 comments

It works for me in Chrome 56 and 57 on Linux. In Firefox, the scroll isn't hijacked (presumably chosen because Firefox has had smooth scrolling longer?), but in Firefox 52 (but not 54) this still improves scroll performance a whole lot:

    window.addEventListener('scroll', function(evt) { evt.stopImmediatePropagation(); }, true)
Wow yeah. That's noticable to the point that it's almost extension-worthy.

Any idea how much potential that snippet has for causing issues if applied generally across the board?

I've not tried this plugin, but it might do just what you want.

https://chrome.google.com/webstore/detail/disable-scroll-jac...

It disables scroll but enables GoogleAnalytics tracking: https://github.com/joshbalfour/disable-scroll-jacking/blob/m...
I loled at this one.