Scroll the table on the teacher’s board with a wheel or trackpad: deltaY and deltaMode, when preventDefault really holds the scroll (on the table, on window…
Custom zoom, endless canvases (maps, design editors), horizontal carousels and hand-made scrolling all read wheel. Misreading passive and deltaMode makes two classic bugs: "why does my preventDefault do nothing?" and "why is my scrolling so slow on this mouse?".
A passive listener cannot cancel the scroll
onWheel + preventDefault() in React, yet the scroll goes on React 17+ listens for wheel at its root as a passive listener, so preventDefault() is ignored (with a console warning). Add your own on the element, inside useEffect: el.addEventListener('wheel', fn, { passive: false }), and remove it on cleanup. The same goes for a listener on window, document or body with no options.deltaY to move N pixels Check deltaMode first. When it is 1 (lines) or 2 (pages), turn it into pixels (say deltaY * 16, or the page’s height); otherwise your scrolling crawls on devices that report in lines.deltaY; for "one step per gesture", group the events that come close together.deltaY.preventDefault() with { passive: true }, then send a wheel Ignored: defaultPrevented stays false, and a real wheel still scrolls the board.{ passive: false } Now preventDefault() holds: defaultPrevented is true, the board stays still.ctrlKey true; a non-passive listener holds the browser’s zoom and the table grows instead.