4 ms·
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
by twiss 10y ago
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)
- 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?