#594 A zoom's first frame moves the view on a stalled page too (#319)
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#594
- pull request
- state:merged
A follow-up to #319, found when CI's WebKit job failed `first frame moves` on the project's new runner while it was busy (#593). **The bug:** a zoom animation's first frame redraws the view in that frame, except when that frame is also the last. That happens when the first frame comes 220 ms or more after the key, as on a busy machine or a slow phone. The animation then finished through `navigate()`, which only schedules a redraw, so the zoom showed a frame late. **The fix:** the last frame now draws in place like the others, and still fetches the final window once. **The test:** the browser check now simulates a stalled page (frames shifted 300 ms ahead) after its usual rounds. Run in the Playwright image, it fails without this change every time, in both WebKit and Chromium, and passes with it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/circagraph/timeline-app/pull/594
Related
Open #594 A zoom's first frame moves the view on a stalled page too (#319) in the timeline