Repository navigation
Conversation
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.
Depends on #8159. Review only this PR's change: vjeux/astryx@fe003a4...276a6e9
Maintainer impact
The touch wheel (#8159) moves through a gesture recognizer and compositor animations, and the unit tests' jsdom has neither. Without browser proofs, CI would pass a wheel that freezes when the page is busy, drifts from UIKit's curve, can't be caught mid-coast, takes the wrong Reduce Motion path, or shows the touch wheel under a mouse.
Evidence
A flick's first 400 ms of coast, one frame per 16.7 ms (Chromium, touch):
A flick in Mobile Safari (iOS 26.2 simulator) through a 530 ms block, and on Android 15 (Chrome 124):
Opening the month and year wheels (Chromium, 4× CPU, 390 × 844, worst frame after the tap, 8 runs):
Intended invariant
What led to it: Astryx's UIKit-parity work (
spec:AST-094) makes the wheel behave like iOS, and these proofs keep it that way: motion runs on the compositor through a busy main thread (FR5), a finger catches any motion (FR6), and under Reduce Motion a flick's coast plays while every other turn cross-fades (FR8,design:reduced-motionDR2). Each year is drawn once (architecture:component-style-authoringINV7).Change
Options: jsdom tests alone are fast but can't see the compositor; screenshot diffs catch looks, not timing. Chosen: browser specs with real touch input in Chromium and WebKit, judging the compositor's own frames. The cost is about a minute of CI, and some cases run only in Chromium, which alone exposes the rendering trace.
Wheel.interaction.browser.spec.tsdrives a 60-row minute wheel (theInternal/Wheelstory): a flick coasts onto its row; the coast advances every frame through a block, with no layout or paint per frame; a finger stops it; Reduce Motion fades a tap in 200 ms or less and lands it through a 700 ms block; a mouse drag scrolls today's column.WheelActivation.interaction.browser.spec.ts, on DateInput's 2- and 200-year stories: every year listed once, and the long range opens about as fast as the short one at 4× CPU throttling.Scope
Testing
pnpm exec playwright test --config playwright.interaction.config.tson the two specs. In Chromium all 11 pass; in WebKit 6 pass and 5 skip (the Chromium-only trace and block cases, and the two mouse cases).Merge order: #8156, #8526, #8159, then this PR (full order in #8156).