An open source design system that's fully customizable and agent ready
TypeScript
spec(AST-094): FR15 exempts watchers from recognizer exclusivity (DEC-7) (#8517)
Cindy Zhangc355ceba830c
diff --git a/docs/specs/AST-094-touch-presentations/spec.md b/docs/specs/AST-094-touch-presentations/spec.mdindex d92470a9f9..bd002ad760 100644--- a/docs/specs/AST-094-touch-presentations/spec.md+++ b/docs/specs/AST-094-touch-presentations/spec.md@@ -227,7 +227,9 @@ a measured, sourced difference exists.wins and the others fail, unless both allow simultaneous recognition. Arecognizer that requires another to fail MUST hold its recognition untilthat one fails, and MUST fail if that one recognizes. When several recognize- on the same event, the innermost element's recognizer MUST win.+ on the same event, the innermost element's recognizer MUST win. Watchers+ are exempt from this exclusivity: they recognize alongside a claiming+ winner, which never fails or cancels them (DEC-7).- **FR16 — Gestures keep the event clock.** Recognizers MUST read time from theinput events' timestamps. Durations (a long press, the interval betweentaps) MUST be deadlines on that clock, so a blocked main thread delays the@@ -526,7 +528,7 @@ FR33 apply to menus only. A mouse keeps today's behavior.| FR11, FR12 | Press and long-press tests on synthetic streams with explicit timestamps | inside and outside a scroll view; a drag the browser takes; a lift inside; a menu row under a finger | the wrong profile's timing, a press that survives the browser taking the touch, or a control activated other than by the browser's click fails || FR13 | Resolver unit tests and a server-render test | coarse and fine pointer; narrow, wide and short; server render; hydrating render | a component that answers the conditions differently, or a touch presentation in the server or hydrating render, fails || FR14 | Browser tests of a sheet over a scrolled list | scrolled and at its top | a midway handoff fails |-| FR15–FR17 | Recognizer unit tests on synthetic streams with explicit timestamps | exclusive, simultaneous, require-to-fail, nested; a blocked main thread; a pan at 10 pt per axis | a wrong winner, a late deadline, or a translation that keeps the hysteresis fails |+| FR15–FR17 | Recognizer unit tests on synthetic streams with explicit timestamps | exclusive, simultaneous, require-to-fail, nested; a watcher beside a claiming winner; a blocked main thread; a pan at 10 pt per axis | a wrong winner, a late deadline, or a translation that keeps the hysteresis, or a watcher failed or cancelled by a claiming winner fails || FR18–FR22 | Browser tests with real touch input (`spec:AST-013` FR10) | per-axis pans beside native scrolling, page zoom, cancelled touches, clicks after taps, keyboard activation, a modal scroll lock, a control that keeps its press through a drag; a still finger with sub-pixel jitter over a scroll view; a finger moved 9 px and 10 px straight, and (7, 7) and (8, 8) diagonally; a recognizer on an element whose author `touch-action` is narrower, including one without `pinch-zoom` | a ghost click, a scroll or zoom blocked other than by the author's `touch-action`, or a cancelled unowned touchmove outside FR19's two exceptions, a tap cancelled by sub-pixel movement or by under 10 px of travel, a scroll that does not take the touch at 10 px, or a derived `touch-action` wider than the author's fails || FR23 | Haptics tests on the recorded moments | tap, drag, lift | a haptic outside a native moment fails || FR24 | Resource tests counting listeners, observers and timers | fine primary pointer; coarse pointer enabled and disabled; many instances; unmount | a touch listener on a fine pointer, a per-instance `document` or `window` listener, or a leak fails |@@ -618,7 +620,8 @@ paint.A recognizer that never claims registers only passive listeners (FR20), sowatching a touch never delays the browser's scroll, and it is not cancelledwhen the browser takes the touch: it follows the scroll to the lift, so a bar-that reacts to scrolling keeps hearing it.+that reacts to scrolling keeps hearing it. Nor does a recognizer that claims+the touch fail or cancel it: a watcher recognizes alongside the winner.### DEC-8 — A native scroll takes a touch after 10 px; touch-action never widens the author's