Repository navigation
fix(vx-docs): run the landing race on one clock - #5290
Merged
Merged
Conversation
The race played through the Web Animations API on runners that start display:none, paused and resumed by an observer that trusted its first queued entry, while a second observer with a different margin showed the runners. The two could disagree: at the band's edge the laps counted over static bars, and a stale entry could leave it paused. One frame clock now moves the runners and counts the laps, and reads where the band is on scroll, tab change and page restore. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W6xuYZX4pQtTvmpXneML5F
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The landing race did not always play.
Cause
display: none.Fix
race.ts, pure).Checks
tests/landing.test.ts: lap arithmetic, the on-screen rule, the frame cap, the lane data.Generated by Claude Code