4 ms·
Unrelated and I'm sorry for that, but do you know of a good way to get rid of the scroll hijacking? I didn't find a lot of extensions for Chrome and the one I t
by StyloBill 10y ago
Unrelated and I'm sorry for that, but do you know of a good way to get rid of the scroll hijacking? I didn't find a lot of extensions for Chrome and the one I tried wasn't working.
It blows my mind to encounter this bad practice on a developper related website.
- twiss 10y agoIn this case, it can be fixed by running this in the developer tools: getEventListeners(window).wheel[0].remove()
- faitswulff 10y agoHm, 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`.
- twiss 10y agoIt 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)
- josteink 10y agoWow 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?
- Flow 10y agoI've not tried this plugin, but it might do just what you want. https://chrome.google.com/webstore/detail/disable-scroll-jacking/ehpdicggenhgapiikfpnmppdonadlnmp https://chrome.google.com/webstore/detail/disable-scroll-jac...
- romuloab42 10y agoIt disables scroll but enables GoogleAnalytics tracking: https://github.com/joshbalfour/disable-scroll-jacking/blob/master/extension/src/inject/injector.js#L17-L26 https://github.com/joshbalfour/disable-scroll-jacking/blob/m...
- _ao789 10y agoI loled at this one.
- Orangeair 10y agoThat did it for me, thanks. Seriously, who overrides default scrolling behavior?
- tedunangst 10y agoAlas, this isn't possible on iPhone, where most of the table is offscreen and unviewable. So not annoyingly "unreadable", but literally (literally) unreadable.