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.
Slider · finger tracking
Superseded by #8190, which carries this change on
main's current base. This pull request closes when #8190 merges.Depends on #8076 (at 6f994bc). Review only this PR's change: vjeux/astryx@6f994bc...ca43cee
User need
Part of Astryx's UIKit-parity work (
spec:AST-094), which makes touch presentations behave as on iOS. #8190 makes a Slider under a finger track like UISlider, and needs UISlider's real numbers: FR1–FR3 require a touch presentation's values to come from the UIKit constants table, each with its source.Problem and solution fit
motion/uikit/slider.tsholds UISlider's values on iOS 26.2, each with its measurement:Current specification
spec:AST-094FR1–FR3.component:Slidersets no touch physics.Public delta and caller burden
None: an internal table (
[chore]), unread here; touch motion has no theme surface.Design and alternatives
valueChangedmatches the travel rule to 10⁻⁴.Evidence
A UIKit host app on the iOS 26.2 simulator (iPhone 17 Pro, real touches) logged
valueChanged, the thumb's frames and four releases. The coast fits within 0.11 pt rms; a 126.9 pt/s release travelled 12.56 pt after the lift, against 12.64 pt predicted.Scope
Testing
Data only; #8190 is its first reader. To check it:
motion/uikit/slider.ts: each value names its measurement.pnpm exec vitest run --project ui packages/core/src/motion/uikit:slider.test.tsreplays the logged drags and releases (tracking, lift and drop, coast) and holds the table to no Reduce Motion mode.Run on this head: the UIKit table tests pass (196), and typecheck and lint are clean.