You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ec8ba40
Browse filesBrowse the repository at this point in the historyBrowse files
feat(core): the release filter's stillness reset (spec:AST-100 FR2)
AST-100 now specifies iOS's blend with a stillness reset: a contact still
for longer than the stillness interval before lifting releases at 0 (#8312).
Pan, scroll-view pan, pinch and rotation pass the lift's event time to the
tracker, which reads 0 when no sample came within velocity.stillness: 40
ms, Android's ASSUME_POINTER_STOPPED_TIME (AOSP VelocityTracker), since
iOS has no time cutoff and keeps the last motion. A lift while moving keeps
the blend's value, so the recorded iOS releases are unchanged. The
constants table accepts an AOSP source.
Copy file name to clipboardExpand all lines: .changeset/gesture-recognizer-fixes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,6 @@
2
2
'@astryxdesign/core': patch
3
3
---
4
4
5
-
[experimental] Gesture recognizer fixes: a timer that fires late lets queued input run first and moves the event clock only to its deadline; `cancel()` on an idle recognizer leaves it `possible`; a waiting recognition that fails gives its claimed touches back; a two-finger double tap compares centroids; a swipe fails only once no allowed direction is reachable; Hover recovers after a mid-hover cancel; setting `rotation` keeps the velocity continuous; a handoff pan's translation never reads below zero. The early claim is now opt-in (`claimDistance: 'early'`, from `UIKIT_GESTURES.pan.earlyClaimDistance`) (a numeric `claimDistance` applies to any direction, so an axis pan can take a diagonal from the browser before its own claim) and a committed claim survives a second finger and scrollable content. `VelocityTracker` is one release filter (`spec:AST-100`), UIKit's measured blend on event time for every pointer: a pan reads it as `velocity(in:)`, and the new `ScrollViewPanGestureRecognizer` reads it as a scroll view's release, for components that coast like one. The `strategy` option and `VelocityStrategy` are removed. A finger the browser reports on both pointer and touch events is sampled from its pointer events alone, so the two copies of one move never both reach a velocity.
5
+
[experimental] Gesture recognizer fixes: a timer that fires late lets queued input run first and moves the event clock only to its deadline; `cancel()` on an idle recognizer leaves it `possible`; a waiting recognition that fails gives its claimed touches back; a two-finger double tap compares centroids; a swipe fails only once no allowed direction is reachable; Hover recovers after a mid-hover cancel; setting `rotation` keeps the velocity continuous; a handoff pan's translation never reads below zero. The early claim is now opt-in (`claimDistance: 'early'`, from `UIKIT_GESTURES.pan.earlyClaimDistance`) (a numeric `claimDistance` applies to any direction, so an axis pan can take a diagonal from the browser before its own claim) and a committed claim survives a second finger and scrollable content. `VelocityTracker` is one release filter (`spec:AST-100`), UIKit's measured blend on event time for every pointer, with FR2's stillness reset (a contact still for longer than 40 ms, Android's value, before lifting releases at 0): a pan reads it as `velocity(in:)`, and the new `ScrollViewPanGestureRecognizer` reads it as a scroll view's release, for components that coast like one. The `strategy` option and `VelocityStrategy` are removed. A finger the browser reports on both pointer and touch events is sampled from its pointer events alone, so the two copies of one move never both reach a velocity.
0 commit comments