mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 14:16:28 +03:00
Watching document.body caught every mutation on the page — shader animations, Bun HMR indicators, tooltips, anything — and fired a correction on each one, which fought the user when they tried to scroll mid-session. Now the observer only responds to mutations inside the session's wrapper. On user scroll intent (wheel / touchstart / touchmove / arrow & page keys), cancel any pending rAF correction and re-anchor to the element's new position, so momentum scrolls don't get yanked back by a stale correction. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>