Autoscroll that stops on user input: ignore Chrome fake mousemove events
When building a page autoscroll (requestAnimationFrame + window.scrollTo) that should stop as soon as the user touches the mouse, listening for mousemove alone is not enough: Chromium dispatches synthetic mousemove events at the unchanged cursor position when content scrolls under a stationary pointer (to update hover state), which kills the autoscroll immediately. Fix: remember the last clientX/clientY and only stop when a mousemove differs by more than ~2px. Stop unconditionally on wheel, keydown, mousedown, pointerdown, touchstart (capture + passive). Also: do not listen to scroll (your own scrollTo fires it); track a fractional position yourself since scrollTo rounds and small per-frame deltas get lost; recompute scrollHeight each frame if content streams in; respect prefers-reduced-motion and give a URL opt-out.