Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion docs/specs/AST-094-touch-presentations/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ a measured, sourced difference exists.
- Pointer (desktop) presentations. Their timing and easing stay with the
theme's duration and easing tokens (`architecture:theme-tokens`).
- Platform-matched look and feel: glass versus material surfaces, glyphs and
chrome. This record governs behavior only.
chrome. This record governs behavior, and touch sizing only as FR42 states.
- WebKit embedded in a native app and the native Swift package. This record
governs the web components themselves.
- Scroll physics. Scrolling stays native on every platform: on iOS an overflow
Expand Down Expand Up @@ -469,6 +469,19 @@ FR33 apply to menus only. A mouse keeps today's behavior.
This replaces `component:Selector` DEC-1's width-and-pointer query with the
FR13 rule for `adaptive`.

- **FR42 — The default look grows no box for touch.** The default Astryx
look makes no box size increase for phones or touch: row heights, control
sizes and target sizes stay as they are; a box may shrink to fit a compact
screen, such as an alert's phone width. Type sizing is outside this rule:
the 16 px mobile reading base (`design:mobile-typography` DR1, DR3) and the
16 px text-entry floor (`family:input-fields` FR9) are unaffected. Under a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider saying here that a box that grows only with its text, such as a Button whose label follows the 16 px reading base, is type sizing too; otherwise "control sizes … stay as they are" and this carve-out pull in opposite directions for content-sized controls (spec:AST-102 FR4 has a control grow with its text).

coarse pointer, touch targets meet 44 px through an invisible hit area. A
hit-area expansion never overlaps a neighboring interactive element's own
target: where neighbors are closer than 44 px, the expansion is clamped to
half the gap, or skipped, so each element stays reachable; an expansion a
component record sets on purpose, such as `component:Thumbnail` AR4's, is

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This carve-out names component records only. module:Markdown/headingLinks FR10 sets the copy button's "non-overlapping 24px coarse hit geometry", and its extension "cannot overlap or steal input from heading text, neighboring controls, or preceding/following lines"; heading text is not an interactive neighbor, so as written FR42 asks that button to reach 44 px over it. Suggest "an expansion a component or module record sets on purpose".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This carve-out names component records only. module:Markdown/headingLinks FR10 sets the copy button's "non-overlapping 24px coarse hit geometry", and its extension "cannot overlap or steal input from heading text, neighboring controls, or preceding/following lines"; heading text is not an interactive neighbor, so as written FR42 asks that button to reach 44 px over it. Suggest "an expansion a component or module record sets on purpose".

unaffected. Mobile size increases belong to theme adaptations (DEC-20).

### Platform support

- Supported engines: Astryx's supported browsers (`spec:AST-013`) with touch
Expand Down Expand Up @@ -518,6 +531,9 @@ FR33 apply to menus only. A mouse keeps today's behavior.
and FR9 under a finger) are stated here (FR26–FR30); FR6's last sentence
gives way to the cell press profile (FR11); its mouse rules (FR8 and the
mouse halves of FR1–FR3) and its non-gesture rules stay in the module.
- Every component under a coarse pointer: no box grows for touch, and a
touch target reaches 44 px only through an invisible hit area clamped by
its neighbors (FR42).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same omission as the verification row: Thumbnail's AR4 hit area is not clamped by its neighbor. Suggest "…through an invisible hit area clamped by its neighbors, unless a component record sets its own (FR42)".

- `component:DropdownMenu`, `component:ContextMenu` and `component:Popover`:
under a finger they follow FR26–FR35 as each applies.
- BottomSheet, Toast, Lightbox, NavigationStack and keyboard dismissal: a
Expand Down Expand Up @@ -556,6 +572,7 @@ FR33 apply to menus only. A mouse keeps today's behavior.
| FR34, FR35 | Browser tests and storyboards under a finger | a sub-menu drilling in and its Back row returning; a tap and a drag during a popover's and a menu's growth; a pinch during growth; a mouse | a drill-in that leaves the parent's rows in place, a change between levels that does not play on its roles, a tap during growth that closes, scrolls or moves focus, a pinch blocked other than by the author's `touch-action`, or a changed mouse path fails |
| FR36–FR40 | Release tests on synthetic touch streams with explicit timestamps, per use | below and past each commit point; a flick that projects past it; a slow drag past it; a release moving back; Reduce Motion; keyboard and mouse paths | a decision that changes mid-settle, a release moving back that commits, a settle that does not start at the release velocity, or an action with no keyboard or mouse path fails |
| FR41 | Browser tests with real touch input (`spec:AST-013` FR10) | a tap; a long press on a ContextMenu trigger, a DropdownMenu trigger the caller renders, a row with a context menu, and a slider thumb; a long press on a checkbox row's label and on plain text; a cancelled press; mouse and keyboard selection | a tap that selects, a hold with an action that starts a selection or callout, a label or plain text whose long press does not select natively, a suppression that outlives the press, or a change to native selection elsewhere or to mouse, keyboard, or assistive-technology selection fails |
| FR42 | Default-theme geometry tests under a coarse and a fine pointer, and hit-testing between adjacent targets | every component at phone width with a finger and with a mouse; a dense toolbar; a chip and its remove button; a Switch beside a label link | a default-theme box that grows under touch or at phone width, a touch target under 44 px where neighbors allow it, or a hit area that overlaps a neighbor's target, fails |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This failure column drops FR42's two carve-outs. "A hit area that overlaps a neighbor's target" fails component:Thumbnail AR4's 2 px coarse-pointer ring, which lies on Open's full-size target and which FR42 leaves unaffected; "a default-theme box that grows under touch or at phone width" fails a text Button that widens when a finger turns on the 16 px reading base (design:mobile-typography DR3), which FR42 calls type sizing. Suggest: "a default-theme box that grows under touch or at phone width other than with its text, a touch target under 44 px where neighbors allow it, or a hit area that overlaps a neighbor's target other than an expansion a component record sets, fails".

| all | iOS simulator: the UIKit reference capture and the same gesture in Safari; real iOS Safari and Android Chrome devices | per component | an unmatched curve or timing is a parity defect |

## Decision log
Expand Down Expand Up @@ -707,6 +724,19 @@ iOS 26.2 simulator measures it.

Rejected: the 150 ms delay on every menu row.

### DEC-20 — The default look grows nothing for touch

**Reference:** `spec:AST-094/DEC-20`
**Decider:** `cixzhang`, `2026-10-26`

Sizes do not grow on phones or under touch in the default look, so a product
looks the same everywhere unless its theme chooses otherwise; shrinking to fit
a compact screen is fine. Touch reach comes from invisible hit areas, clamped
so two close neighbors both stay reachable. Themes own mobile size increases
through their adaptations.

Rejected: touch-only row heights and control sizes in the default look.

### DEC-18 — A scroll-edge pan may hold the page's rubber band from the first move

**Reference:** `spec:AST-094/DEC-18`
Expand Down
Loading