Hacker News new | ask | show | jobs
by twiss 3365 days ago
In this case, it can be fixed by running this in the developer tools:

    getEventListeners(window).wheel[0].remove()
3 comments

That did it for me, thanks. Seriously, who overrides default scrolling behavior?
People that develop on windows and want that smooth mac style scrolling - at least from my experience. Also LOTS of free and paid wordpress themes use it as a selling point.
so, so bad..
Alas, this isn't possible on iPhone, where most of the table is offscreen and unviewable. So not annoyingly "unreadable", but literally (literally) unreadable.
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`.

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.