logoalt Hacker News

ajyoonyesterday at 7:13 PM3 repliesview on HN

Scroll wheel hijacked on this entire domain


Replies

gravyesterday at 7:51 PM

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.');
  })();
show 1 reply
matchbok3yesterday at 7:18 PM

Yeah this website is horrendous to use. What were they thinking?

show 1 reply
infraredshiftyesterday at 7:20 PM

[dead]