Repository navigation
Commit ca78ff7
committed
feat(AlertDialog): the actions are an action group on the shared tracker, for every pointer
meta#8083's own change (with meta#8110's, which it supersedes). AlertDialog's
actions are one action group while the dialog is open: a held finger,
pen or mouse is tracked across them and the one lifted on runs. The
shared hook (hooks/useActionGroupTracking.ts) adapts the tracker to a
long press: a zero-duration hold, a rect cache, the hit expansion for a
finger only, and the scroll view's content-touch delay inside a scroller
(hooks/useIsScrollable.ts). The alert's measured values live with their
one user (motion/uikit/alert.ts). A mouse drag across the actions keeps
the page's text selection (the drag rule is undecided, so it is left
out); a finger's and a pen's hold keep their lock (spec:AST-094 FR41).
Absorbs meta#8083 (786144e) and meta#8110.1 parent f9f33c7 commit ca78ff7
11 files changed
Lines changed: 1864 additions & 10 deletions
File tree
- .changeset
- packages/core/src
- AlertDialog
- __tests__
- hooks
- motion
- uikit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments