6 ms·
Fix: (() => { const KILL = ['wheel', 'mousewheel', 'DOMMouseScroll', 'touchmove']; const block = e => e.stopImmediatePropagation(); for (const t of KIL
by grav 4mo ago
Fix:
(() => {
const KILL = ['wheel', 'mousewheel', 'DOMMouseScroll', 'touchmove'];
const block = e => e.stopImmediatePropagation();
for (const t of KILL) {
window.addEventListener(t, block, { capture: true, passive: true });
document.addEventListener(t, block, { capture: true, passive: true });
}
document.documentElement.classList.remove('lenis','lenis-smooth','lenis-scrolling','lenis-stopped');
console.log('Scroll hijack disabled — native scrolling restored.');
})();
- sethops1 4mo agoThe fix is to close the tab.