Skip to content
Draft
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
6fd83b2
fix(ContextMenu): a frame, not a timer, starts the touch growth
vjeux Nov 7, 2026
d44956d
test(ContextMenu): the lift shows the menu inside its own dispatch
vjeux Nov 7, 2026
409e581
test(ContextMenu): the menu loads the animator at once for its growth
vjeux Nov 7, 2026
abb70e1
test(ContextMenu): a starved page fails the 735 ms proof by name
vjeux Nov 7, 2026
983e46f
feat(ContextMenu): the finger that opened the menu slides to an item
vjeux Nov 7, 2026
4edb900
test(ContextMenu): Reduce Motion's menu shows in its deciding task too
vjeux Nov 7, 2026
b8a9055
Merge commit '62c7802e873ed3d020192e8218e5e1bcd4f8fad2' into HEAD
vjeux Nov 7, 2026
8130a0b
Merge commit '8da39a830b6bc4b8d3dc93e9192c7c15f2feb974' into HEAD
vjeux Nov 7, 2026
8da39a8
Merge commit 'b8a9055733b01d1a2379923035f598d405df7606' into HEAD
vjeux Nov 7, 2026
e66ff1d
Merge commit '92784f658939912fae623dd497cd35e499e13878' into HEAD
vjeux Nov 8, 2026
08a3ad5
Merge commit '343df06699191ed4ff94b606ae0247671988db2e' into HEAD
vjeux Nov 8, 2026
343df06
Merge commit 'e66ff1d4f8d74ee9cce277cc7cb3ac14ed1368a0' into HEAD
vjeux Nov 8, 2026
ad37823
Merge commit 'c9d07a9136573e6e87da98745d5afb84a271cf59' into HEAD
vjeux Nov 8, 2026
24c03c1
test(ContextMenu): a starved page's late timer fails by name in WebKit
vjeux Nov 8, 2026
c9d07a9
Merge commit '24c03c1e10039a5eb52569848433ab8f7643419f' into HEAD
vjeux Nov 8, 2026
0ac4cb7
ci: record ContextMenuLongPress's WebKit time for the leg count
vjeux Nov 8, 2026
339bf7e
docs(ContextMenu): PR1 names each presentation's query subscriptions
vjeux Nov 8, 2026
3d78dae
docs(ContextMenu): the record names the touch open's focus gap
vjeux Nov 8, 2026
cc254d7
Merge commit '3d78dae488ec298c7ddefea756032ee181008321' into HEAD
vjeux Nov 8, 2026
f62eada
Merge commit 'cc254d737d56e644530fb8334162ca895be65539' into HEAD
vjeux Nov 8, 2026
20dc83f
Merge branch 'main' into uikit/c20-contextmenu-press
cixzhang Nov 8, 2026
4c936d1
Merge branch 'uikit/c20-contextmenu-press' into uikit/c20-contextmenu…
cixzhang Nov 8, 2026
292bbe9
Merge branch 'uikit/c20-contextmenu-growth' into uikit/c20-contextmen…
cixzhang Nov 8, 2026
a9188e6
Merge main
vjeux Nov 10, 2026
a5a0e12
test(ContextMenu): a finger that lifts before 400 ms is a plain tap
vjeux Nov 10, 2026
704cff3
Merge #8125's head into the press feedback
vjeux Nov 10, 2026
06c942c
test(ContextMenu): a press leaves the open menu as an unpressed open
vjeux Nov 10, 2026
597e158
fix(ContextMenu): the press grows the trigger's visual, not its anchor
vjeux Nov 10, 2026
2ef1714
test(ContextMenu): the long-press cases wait for conditions, not time
vjeux Nov 10, 2026
ec0cc34
Merge #9816's head into the slide to pick
vjeux Nov 10, 2026
a6253f3
test(ContextMenu): a late drift past 11.5 px, a known Chromium gap
vjeux Nov 10, 2026
d26b15b
test(ContextMenu): a set-height trigger keeps a full-height child
vjeux Nov 10, 2026
3c39a05
test(ContextMenu): a late drift past 11.5 px cancels in every engine
vjeux Nov 10, 2026
a4e0404
fix(ContextMenu): the menu waits for the finger's late moves
vjeux Nov 10, 2026
7d23141
fix(ContextMenu): the trigger's visual takes the trigger's height
vjeux Nov 10, 2026
a75cf09
test(ContextMenu): the inner visual box adds no attribute
vjeux Nov 10, 2026
c346da0
Merge #8125's head into the press feedback
vjeux Nov 10, 2026
3b76a8c
test(ContextMenu): a finger inside the tolerance at the menu's moment
vjeux Nov 10, 2026
88cc0d8
fix(ContextMenu): the press reads each move's own time from the arena
vjeux Nov 10, 2026
e25ec8c
Merge #8125's head into the press feedback
vjeux Nov 10, 2026
967b5f6
Merge #9816's head into the slide to pick
vjeux Nov 10, 2026
46bc0da
test(ContextMenu): coalesced late samples and an on-time move
vjeux Nov 10, 2026
cad79ec
fix(ContextMenu): judge each sample at its time, wait only when late
vjeux Nov 10, 2026
782cdbd
Merge #8125's head into the press feedback
vjeux Nov 10, 2026
ac3dab7
Merge #9816's head into the slide to pick
vjeux Nov 10, 2026
889aded
test(ContextMenu): moves held behind a block decide before the menu
vjeux Nov 11, 2026
45bfb44
fix(ContextMenu): a late menu timer waits for moves behind the block
vjeux Nov 11, 2026
2a36eba
Merge #8125's head into the press feedback
vjeux Nov 11, 2026
d743922
test(ContextMenu): the press's page time comes from the arena's clock
vjeux Nov 11, 2026
cae3644
fix(ContextMenu): the press reads the page's time from the arena
vjeux Nov 11, 2026
b80098f
Merge #9816's head into the slide to pick
vjeux Nov 11, 2026
0b1f31c
Merge #8125's head into the press feedback
vjeux Nov 11, 2026
17cab2a
test(ContextMenu): the stays-put case reads the menu as laid out
vjeux Nov 11, 2026
6db12ac
docs(useMenuPress): name continueGesture in the handoff row
vjeux Nov 11, 2026
4e93b5f
refactor(ContextMenu): a private mark finds the trigger, not a registry
vjeux Nov 11, 2026
f908089
docs(ContextMenu): name the context-menu-trigger mark's owner
vjeux Nov 11, 2026
b830181
docs(ContextMenu): the Chinese summary says slide to pick, too
vjeux Nov 11, 2026
03eb7d7
refactor(ContextMenu): the touch layer imports its recognizer directly
vjeux Nov 11, 2026
f37d633
test(ContextMenu): a drift queued behind a block still ends the hold
vjeux Nov 11, 2026
8575ec7
docs(records): why the press keeps its own wait, and outsidePress types
vjeux Nov 11, 2026
22ae97e
docs(ContextMenu): name the measured table and the moved default
vjeux Nov 11, 2026
7c8cb86
Merge main
vjeux Nov 11, 2026
56b2f62
test(ContextMenu): a finger in a second document on its own clock
vjeux Nov 11, 2026
650a125
Merge main
vjeux Nov 11, 2026
fac565a
docs(ContextMenu): the record owns the touch hold's two modules
vjeux Nov 11, 2026
850a9c2
Merge #8125's next head into the press feedback
vjeux Nov 11, 2026
3f21ccf
Merge the press feedback's next head into the slide to pick
vjeux Nov 11, 2026
69e6dd8
docs(ContextMenu): the hold's comments match what this code does
vjeux Nov 11, 2026
da14211
Merge #8125's comment fixes into the press feedback
vjeux Nov 11, 2026
cecb382
docs(ContextMenu): the timeline and the spec name the press feedback
vjeux Nov 11, 2026
3e17bd2
test(ContextMenu): a growth in a second document times its onset
vjeux Nov 11, 2026
69a6851
fix(ContextMenu): a growth runs on its trigger window's clock
vjeux Nov 11, 2026
1d6ec37
docs(ContextMenu): the End-user impact row states no build status
vjeux Nov 11, 2026
8fb305f
docs(ContextMenu): the press feedback's file comment keeps one line
vjeux Nov 11, 2026
4b1f2a7
Merge the press feedback's iframe-clock fix into the slide to pick
vjeux Nov 11, 2026
1375867
docs(layer-runtime): name the layer's prepare and releasePrepared
vjeux Nov 12, 2026
330fcc9
Merge main 6ab0c2ea11 into the press
vjeux Nov 12, 2026
f7ff7ea
feat(useMenuPress): continueGesture and its type are public
vjeux Nov 12, 2026
f7d5dd0
docs(useMenuPress): the record lists continueGesture
vjeux Nov 12, 2026
8ab857d
Merge #8125's main merge into the press feedback
vjeux Nov 12, 2026
cb9029d
test(ContextMenu): a pen the press machine never marks still grows
vjeux Nov 12, 2026
8fc523e
fix(ContextMenu): a pen's growth starts at its onset, as a finger's
vjeux Nov 12, 2026
7295d1b
Merge the press feedback's pen round into the slide to pick
vjeux Nov 12, 2026
dcfa0f8
Merge main 1740654b76 into the press
vjeux Nov 12, 2026
f0b0017
test(ContextMenu): a dropped render leaves the commit's mount alone
vjeux Nov 12, 2026
e5a2bc9
refactor(ContextMenu): no ref is written during render
vjeux Nov 12, 2026
3ea914d
docs(layer-runtime): the outside-press line names a touch's press too
vjeux Nov 11, 2026
86f89fd
docs(ContextMenu): two more comments match what this code does
vjeux Nov 11, 2026
9cccb47
docs(ContextMenu): the rest of the text matches what ships here
vjeux Nov 12, 2026
21f8156
docs(ContextMenu): the End-user row states the gap, not a status
vjeux Nov 12, 2026
2023c97
Merge #8125's main merge and committed refs into the press feedback
vjeux Nov 12, 2026
2bd6ba2
test(ContextMenu): a dropped render leaves the growth alone
vjeux Nov 12, 2026
4782e33
refactor(ContextMenu): the press feedback writes no ref during render
vjeux Nov 12, 2026
01f5f22
docs(ContextMenu): the press feedback's text matches the pen change
vjeux Nov 12, 2026
a1cc302
test(ContextMenu): the stays-put case reads the menu after its entrance
vjeux Nov 12, 2026
6ed7fd1
Merge the press feedback's committed refs into the slide to pick
vjeux Nov 12, 2026
01f789a
docs(ContextMenu): FR13 names the touch model's hold
vjeux Nov 12, 2026
0ab5763
Merge the press feedback's main merge into the slide to pick
vjeux Nov 12, 2026
e8d6326
Merge main 4d1cb828f6 into the press
vjeux Nov 12, 2026
c11eb1f
Merge #8125's main merge into the press feedback
vjeux Nov 12, 2026
469ef88
fix(useMenuPress): continueGesture lists optionsRef in its deps
vjeux Nov 12, 2026
d3621c0
Merge main 50beab9610 into the press
vjeux Nov 12, 2026
5adbafb
test(ContextMenu): the shift cases set how late the page gets the move
vjeux Nov 12, 2026
b8c7cb2
Merge #8125's main merge into the press feedback
vjeux Nov 12, 2026
44ab755
test(ContextMenu): the late-touch growth case reads the curve's start
vjeux Nov 12, 2026
759c540
Merge the press feedback's main merge into the slide to pick
vjeux Nov 12, 2026
42d9d3f
test(useMenuPress): a handed finger's lift cancels its own touchend
vjeux Nov 12, 2026
e165a7b
fix(useMenuPress): a handed finger's touch stays unnamed
vjeux Nov 12, 2026
3632bb3
docs(layer-runtime): ContextMenu's menu uses the outside-press watch
vjeux Nov 12, 2026
26f36d3
docs(ContextMenu): FR10's gap names the hold ContextMenu times itself
vjeux Nov 12, 2026
68be391
test(ContextMenu): the late-move case bounds the wait from above
vjeux Nov 12, 2026
cd6d257
Merge #8125's records round into the press feedback
vjeux Nov 12, 2026
496df15
Merge the press feedback's records round into the slide to pick
vjeux Nov 12, 2026
a4b9181
test(useMenuPress): name the handed-finger case for what it proves
vjeux Nov 12, 2026
8e34400
Merge main 56680f6a7c into the press
vjeux Nov 12, 2026
a42af3e
Merge #8125's main merge into the press feedback
vjeux Nov 12, 2026
ace89cf
Merge the press feedback's main merge into the slide to pick
vjeux Nov 12, 2026
06b982f
Merge main 36f68b0da0 into the press
vjeux Nov 13, 2026
eb3d17d
Merge #8125's main merge into the press feedback
vjeux Nov 13, 2026
936263c
Merge the press feedback's main merge into the slide to pick
vjeux Nov 13, 2026
21ffc1b
Merge main 4800d992eb into the press
vjeux Nov 14, 2026
9710f27
test(ContextMenu): a held finger on a Table header gets its menu there
vjeux Nov 14, 2026
85d7a36
fix(ContextMenu): a finger's point is measured from the anchor's box
vjeux Nov 14, 2026
cda2451
Merge #8125's main merge into the press feedback
vjeux Nov 14, 2026
acd9841
Merge the press feedback's main merge into the slide to pick
vjeux Nov 14, 2026
bb998be
test(ContextMenu): a finger before the touch layer loads waits for it
vjeux Nov 14, 2026
30b6b1e
feat(ContextMenu): the touch layer loads after first paint
vjeux Nov 14, 2026
beabd19
Merge #8125's deferred touch layer into the press feedback
vjeux Nov 14, 2026
556b4ff
test(ContextMenu): the growth cases load the touch layer first
vjeux Nov 14, 2026
e1f291a
Merge the press feedback's deferred touch layer into the slide to pick
vjeux Nov 14, 2026
779d979
test(ContextMenu): a drift before the touch layer loads ends the press
vjeux Nov 15, 2026
ffa0950
fix(ContextMenu): a drift before the touch layer loads ends the press
vjeux Nov 15, 2026
c6208ca
docs(ContextMenu): the touch loader's comments in short sentences
vjeux Nov 15, 2026
d8eea4f
Merge #8125's drift fix into the press feedback
vjeux Nov 15, 2026
d5a7049
test(ContextMenu): a popover long press waits for no touch layer
vjeux Nov 15, 2026
9df32ef
Merge the press feedback's drift fix into the slide to pick
vjeux Nov 15, 2026
df18912
Merge main 6d00dd56fd into the touch hold
vjeux Nov 15, 2026
679d033
Merge #8125's main merge into the press feedback
vjeux Nov 15, 2026
f23a1a2
Merge the press feedback's main merge into the slide to pick
vjeux Nov 15, 2026
e7c75e4
test(gestures): a late deadline waits for input queued behind a block
vjeux Nov 15, 2026
b547611
fix(gestures): a late deadline waits for input queued behind a block
vjeux Nov 15, 2026
7764661
test(ContextMenu): late finger's pointer, heard finger, failed load
vjeux Nov 15, 2026
b919d67
fix(ContextMenu): late finger keeps its pointer; failed load recovers
vjeux Nov 15, 2026
a458377
test(gestures): a deadline among a coalesced move's samples
vjeux Nov 15, 2026
6e45960
fix(gestures): a deadline among a coalesced move's samples runs between
vjeux Nov 15, 2026
1f848c9
test(gestures): a deadline due during a late wait runs as it ends
vjeux Nov 15, 2026
cf6fa67
fix(gestures): a deadline due during a late wait runs as it ends
vjeux Nov 15, 2026
104122d
Merge the arena's late-input handling into the touch hold
vjeux Nov 15, 2026
1a404c9
refactor(ContextMenu): leave late input to the gesture arena
vjeux Nov 15, 2026
9c264cc
Merge the touch hold's round-13 fixes into the press feedback
vjeux Nov 15, 2026
065eeea
Merge the press feedback's round-13 merge into the slide to pick
vjeux Nov 15, 2026
87de1ad
test(ContextMenu): a finger held through the load slides to pick
vjeux Nov 15, 2026
65210b4
test(useMenuPress): the continuation harness writes its ref at commit
vjeux Nov 15, 2026
d73fbbc
docs(layer-runtime): a popover ContextMenu judges a touch at its press
vjeux Nov 15, 2026
4bb627a
docs(ContextMenu): say what ends and returns the trigger's growth
vjeux Nov 15, 2026
dab54f2
Merge the touch hold's layer-runtime fix into the press feedback
vjeux Nov 15, 2026
1da3ab9
Merge the press feedback's comment and record fixes into the slide
vjeux Nov 15, 2026
a14908d
docs(gestures): the late wait's comment and changeset in short sentences
vjeux Nov 15, 2026
81a658c
test(ContextMenu): load on the trigger window; failed load frees finger
vjeux Nov 15, 2026
fead7ee
fix(ContextMenu): load on the trigger's window; failed load frees finger
vjeux Nov 15, 2026
88132ea
docs(specs): FR16 states the late wait's cost for every recognizer
vjeux Nov 15, 2026
23afc6e
Merge the arena fix's short sentences and its cost line
vjeux Nov 15, 2026
548fe3c
Merge the touch hold's loader alignment into the press feedback
vjeux Nov 15, 2026
b65c287
Merge the press feedback's loader alignment into the slide to pick
vjeux Nov 15, 2026
640bbfa
test(gestures): a mouse keeps the late yield; a late wait ends once
vjeux Nov 15, 2026
b7e19e3
fix(gestures): only a finger or pen waits; a late wait ends once
vjeux Nov 15, 2026
320e8a3
Merge the arena fix's finger and pen gate into the touch hold
vjeux Nov 15, 2026
bef36f2
Merge the touch hold's arena gate merge into the press feedback
vjeux Nov 15, 2026
7e9b2ba
Merge the press feedback's arena gate merge into the slide to pick
vjeux Nov 15, 2026
b411003
docs(gestures): the arena header's late-wait sentence in two
vjeux Nov 15, 2026
3503b02
docs(gestures): FR16 states the gate once; comments say why
vjeux Nov 15, 2026
ec2e905
Merge main 64806d0bd2 into the arena fix
vjeux Nov 15, 2026
f9c558f
Merge the arena fix's main merge into the touch hold
vjeux Nov 15, 2026
9e26c1e
docs(specs): the FR16 gap note names the finger-or-pen gate
vjeux Nov 15, 2026
cdd8ebc
Merge the touch hold's main merge into the press feedback
vjeux Nov 15, 2026
bd883b0
Merge the press feedback's main merge into the slide to pick
vjeux Nov 15, 2026
db994d9
test(ContextMenu): the lift's click proof waits for the touch layer
vjeux Nov 15, 2026
c873548
Merge the touch hold's lift-proof fix into the press feedback
vjeux Nov 15, 2026
d138175
Merge the press feedback's lift-proof fix into the slide to pick
vjeux Nov 15, 2026
fc46615
test(ContextMenu): a trigger mounting after a failed load loads nothing
vjeux Nov 15, 2026
c8446e5
fix(ContextMenu): after a failed load, only a touch asks again
vjeux Nov 15, 2026
9f7be4c
docs(ContextMenu): the pointer-order comment names no engine
vjeux Nov 15, 2026
fbe0c1c
chore(ContextMenu): the touch loader's per-copy state is allowed
vjeux Nov 15, 2026
baefcb5
Merge the touch hold's review fixes into the press feedback
vjeux Nov 15, 2026
9996ce2
docs(ContextMenu): the growth comment's last sentence in two
vjeux Nov 15, 2026
00c765b
Merge the press feedback's review fixes into the slide to pick
vjeux Nov 15, 2026
755c023
test(ContextMenu): a finger whose pointerdown comes second slides too
vjeux Nov 15, 2026
add87da
perf(Layer): the public useLayer hides prepare() by type only
vjeux Nov 15, 2026
8ed1ce9
Merge the touch hold's layer slimming into the press feedback
vjeux Nov 15, 2026
8aed263
Merge the press feedback's layer slimming into the slide to pick
vjeux Nov 15, 2026
1acbd8b
test(ContextMenu): a trigger in another document loads nothing either
vjeux Nov 15, 2026
f4076cb
fix(ContextMenu): after a failed load, no window schedules another
vjeux Nov 15, 2026
9cfc2fa
docs(Layer): prepare() is hidden from useLayer's type, not its object
vjeux Nov 15, 2026
9c1cd2b
Merge the touch hold's loader and record fixes into the press feedback
vjeux Nov 15, 2026
8f14c7c
Merge the press feedback's loader and record fixes into the slide
vjeux Nov 15, 2026
33da554
Merge the arena fix's main merge into the touch hold
vjeux Dec 1, 2026
9a1e458
Merge main 3e9743a3db into the arena fix
vjeux Dec 1, 2026
fc6df46
test(ContextMenu): two more press proofs wait for the touch layer
vjeux Dec 1, 2026
03955ac
Merge #8125's head into the press feedback
vjeux Dec 1, 2026
d38f060
Merge #9816's head into the slide to pick
vjeux Dec 1, 2026
b28b4dc
docs(changeset): the touch notes name the load and the sheet
vjeux Dec 1, 2026
8bb79e8
test(ContextMenu): a trigger that cuts its own text keeps its ellipsis
vjeux Dec 1, 2026
ce4266a
docs(changeset): the arena's late wait follows the latest contact
vjeux Dec 1, 2026
bf8a636
chore(lint): the arena comment no longer cites FR16
vjeux Dec 1, 2026
eab562a
Merge the arena fix's release note and lint baseline into the touch hold
vjeux Dec 1, 2026
ffb5447
fix(ContextMenu): the trigger's visual clips and cuts text as it would
vjeux Dec 1, 2026
bb47e68
Merge #8125's head into the press feedback
vjeux Dec 1, 2026
6eb342b
docs(changeset): the growth note names Reduce Motion and the load
vjeux Dec 1, 2026
1fc59b5
Merge #9816's head into the slide to pick
vjeux Dec 1, 2026
f769e08
test(PageControl): the held-finger proof's hold rule gets its own module
vjeux Dec 1, 2026
c25a39c
test(PageControl): the hold rule meets the arena's wait for queued input
vjeux Dec 1, 2026
35f9cb0
test(PageControl): the hold rule learns the arena's queued-input wait
vjeux Dec 1, 2026
789d429
Merge the arena fix's PageControl proof fix into the touch hold
vjeux Dec 1, 2026
a7c1bd7
Merge #8125's head into the press feedback
vjeux Dec 1, 2026
52f53c7
Merge #9816's head into the slide to pick
vjeux Dec 1, 2026
8c5edf9
docs(changeset): the arena's late wait, in FR16's words
vjeux Dec 2, 2026
b623ca5
test(PageControl): an input from before the deadline ends no wait
vjeux Dec 2, 2026
c5eddc2
test(PageControl): only an input from the deadline on ends a wait
vjeux Dec 2, 2026
1dd0bc3
docs(ContextMenu): the touch notes scope focus and the retry
vjeux Dec 2, 2026
030309c
Merge the arena fix's release note and hold-rule guard into the touch…
vjeux Dec 2, 2026
105dccb
docs(changeset): the slide follows the touch model's hold
vjeux Dec 2, 2026
7ddbbf3
test(ContextMenu): triggers that clip or scroll draw as plain boxes
vjeux Dec 2, 2026
4e1cc60
fix(ContextMenu): the trigger's visual is a box only where it grows
vjeux Dec 2, 2026
e5ae83a
Merge #8125's head into the press feedback
vjeux Dec 2, 2026
580fbf4
Merge #9816's head into the slide to pick
vjeux Dec 2, 2026
78ee68f
docs(ContextMenu): a finger down before the touch layer loads
vjeux Dec 2, 2026
265bc98
docs(gestures): a finger down before its recognizer attaches
vjeux Dec 2, 2026
a5fc8b6
docs(ContextMenu): an outside press closes it through the shared watch
vjeux Dec 2, 2026
b31c5fd
Merge #8125's record wording into the press feedback
vjeux Dec 2, 2026
00e2f75
Merge #9816's record fixes into the slide to pick
vjeux Dec 2, 2026
bb96dd1
docs(changeset): the page scrolls under a popover menu only
vjeux Dec 2, 2026
4734004
test(ContextMenu): a narrower viewport that starts a trigger's cut
vjeux Dec 2, 2026
789a0c7
fix(ContextMenu): read the trigger's cut at each commit and on resize
vjeux Dec 2, 2026
8c8f1a1
Merge #8125's release note into the press feedback
vjeux Dec 2, 2026
9826f13
Merge #9816's head into the slide to pick
vjeux Dec 2, 2026
4ef721d
Merge main into the arena's late-input fix
vjeux Dec 2, 2026
c723e88
Merge #11837's head into the touch hold
vjeux Dec 2, 2026
1dabfe7
Merge #8125's head into the press feedback
vjeux Dec 2, 2026
6c53a39
Merge #9816's head into the slide to pick
vjeux Dec 2, 2026
e642688
docs(gestures): the late-input flag's comment gives only the reason
vjeux Dec 2, 2026
b9115ee
docs(gestures): name the arena in the input-samples comment
vjeux Dec 2, 2026
46c21bf
Merge #11837's head into the touch hold
vjeux Dec 2, 2026
382d939
Merge #8125's head into the press feedback
vjeux Dec 2, 2026
efded9e
Merge #9816's head into the slide to pick
vjeux Dec 2, 2026
dee55df
test(ContextMenu): a finger on a trigger's child inside a shadow root
vjeux Dec 2, 2026
031f8e1
fix(ContextMenu): find the trigger out of a shadow root in it
vjeux Dec 2, 2026
69a7f10
Merge #9816's head into the slide to pick
vjeux Dec 2, 2026
063e6ec
test(ContextMenu): a finger on content slotted into a trigger
vjeux Dec 2, 2026
b337bd9
fix(ContextMenu): find the trigger along the flat tree
vjeux Dec 2, 2026
8ca8c04
Merge #9816's head into the slide to pick
vjeux Dec 2, 2026
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
7 changes: 7 additions & 0 deletions .changeset/contextmenu-outside-press-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] A ContextMenu shown as a popover closes on an outside press through the layer's outside-press watch; a bottom-sheet menu closes as BottomSheet does. A mouse or pen press closes it at its `mousedown`, in the menu's own document, so a menu in an iframe or a Picture-in-Picture window no longer closes on a press in the page.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/contextmenu-touch-slide-to-pick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[feat] ContextMenu where the primary pointer is coarse (`presentation` unset, or `adaptive` where it stays a popover): after the touch model's hold opens the menu at the finger, the same finger may slide onto an action without lifting, as on iOS. Lifting over an action picks it, and lifting over no action leaves the menu open. The finger picks only after it has moved 10 px in the open menu, so a still lift picks nothing.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/contextmenu-touch-timeline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[feat] ContextMenu opens from a held finger on iOS 26's measured timeline where the primary pointer is coarse. A block trigger whose menu opens at the finger starts to grow 150 ms after the finger lands. It grows toward its held size on UIKit's lift spring, played on the compositor. Under Reduce Motion it does not grow. The hold keeps UIKit's measured moments. The growth scales an inner box that holds the trigger's children, so the menu never takes the press's scale. At 400 ms the press takes the finger: its lift no longer sends a click, and the page cannot scroll under it. The menu opens at 735 ms if the finger is still down, or as soon as it lifts after 400 ms. A finger that lifts before 400 ms, or drifts more than 11.5 px on either axis before the menu opens, gets no menu, and the trigger springs back to its size. While a popover menu is up, the page stays free to scroll: a touch outside the menu closes it as it begins to pan, or at its lift. The trigger returns to its size when the menu closes. A menu the hold opens lights no row: the menu itself takes the focus, as in UIKit (keyboard and pointer opens of a popover menu still focus the first item). A second finger cancels the press before 400 ms; after it, the menu still opens. A fine pointer (a mouse) keeps the right-click menu, and a finger there keeps today's 500 ms long press. The touch code loads after the page first paints, so a page's first load does not carry it. Until it loads, nothing takes a finger, and a lift opens no menu. A finger still down at the load starts the hold then, so its menu opens 735 ms later. A block trigger then starts to grow 150 ms after the load. If the load fails, today's 500 ms long press opens the menu, as does a `contextmenu` event the browser sends for a long press. A popover menu opened this way focuses its first item, and the next touch on the trigger asks for the code again. Pass `presentation="popover"` to keep today's menu: the menu at the pointer, opened by a finger held for 500 ms.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-arena-late-input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] Behind a blocked page, a gesture deadline now waits for a finger's or pen's input stamped before it. A late deadline lets input still queued run first. While the latest contact is a finger or a pen, it waits 50 ms when its timer runs more than 17 ms late, even with nothing queued. Each finger's or pen's input from before it that reaches the page more than 33 ms late keeps it waiting 50 ms more. While the latest contact is a mouse or a trackpad, no deadline waits 50 ms. A deadline that falls among a coalesced move's samples runs between them. A List reorder hold or a Pager's catch whose finger's drift or lift reaches the page during that wait now ends as it should.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/menu-press-continue-gesture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[feat] `useMenuPress` returns `continueGesture(pointer)`, and `@astryxdesign/core/hooks` exports its `MenuPressContinuation` type. A menu that opens under a pointer that went down elsewhere, such as a long press on another element, hands that pointer to the menu: the same finger can then slide onto a row and pick it on release (`module:DropdownMenu/useMenuPress` FR11).

@vjeux
338 changes: 338 additions & 0 deletions apps/storybook/stories/ContextMenu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -647,3 +647,341 @@ export const BottomSheetSubmenu: Story = {
}
},
};

const touchStyles = stylex.create({
demo: {
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
gap: '12px',
},
card: {
width: '200px',
height: '120px',
display: 'grid',
placeItems: 'center',
borderRadius: '12px',
backgroundColor: '#e5e7eb',
color: '#374151',
userSelect: 'none',
},
});

export const TouchLongPress: Story = {
name: 'Touch / long press',
parameters: {
docs: {
description: {
story:
'Where the primary pointer is coarse (a touch screen), hold a finger on the card. As on iOS, it starts to grow after 150 ms, a haptic plays at 400 ms where the device can play one, and the menu opens at 735 ms, or as soon as the finger lifts after 400 ms. Once the menu is up, the same finger may slide onto an action without lifting: lifting over an action picks it, and lifting over no action leaves the menu open. The last action picked shows below the card. A finger that lifts before 400 ms, or drifts more than 11.5 px on either axis before the menu opens, gets no menu, and the card springs back to its size. While the menu is up, the page still scrolls: a touch outside the menu closes it as it begins to pan. The card returns to its size when the menu closes.',
},
},
},
render: () => <TouchLongPressDemo />,
};

/** The touch story's menu, and the last action it picked. */
function TouchLongPressDemo() {
const [lastAction, setLastAction] = useState<string | null>(null);
const pick = (label: string) => () => setLastAction(label);
return (
<div {...stylex.props(touchStyles.demo)}>
<ContextMenu
data-testid="touch-context-menu"
label="Photo actions"
items={[
{label: 'Copy', icon: ClipboardIcon, onClick: pick('Copy')},
{label: 'Share', icon: ShareIcon, onClick: pick('Share')},
{
label: 'Save to Files',
icon: ArrowDownTrayIcon,
onClick: pick('Save to Files'),
},
{type: 'divider'},
{
label: 'Delete',
icon: TrashIcon,
variant: 'destructive',
onClick: pick('Delete'),
},
]}>
<div {...stylex.props(touchStyles.card)}>Hold for actions</div>
</ContextMenu>
<p data-testid="touch-context-menu-last">
{lastAction == null ? 'No action yet' : `Last action: ${lastAction}`}
</p>
</div>
);
}

const layoutStyles = stylex.create({
page: {
display: 'grid',
gap: '24px',
},
pair: {
display: 'grid',
gridTemplateColumns: '1fr 1fr',
gap: '24px',
},
block: {
padding: '12px',
borderRadius: '12px',
backgroundColor: '#f3f4f6',
},
row: {
display: 'flex',
alignItems: 'center',
gap: '12px',
padding: '8px 16px',
backgroundColor: '#f3f4f6',
},
grid: {
display: 'grid',
gridTemplateColumns: '40px 1fr',
gridTemplateRows: 'auto auto',
columnGap: '12px',
rowGap: '4px',
padding: '8px',
backgroundColor: '#f3f4f6',
},
swatch: {
width: '40px',
height: '40px',
borderRadius: '8px',
backgroundColor: '#9ca3af',
gridRow: '1 / 3',
},
tall: {
height: '160px',
padding: '8px',
backgroundColor: '#f3f4f6',
},
fill: {
height: '100%',
borderRadius: '8px',
backgroundColor: '#d1d5db',
},
cutPair: {
display: 'grid',
gridTemplateColumns: '160px 160px',
gap: '24px',
},
truncate: {
padding: '8px',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
backgroundColor: '#f3f4f6',
},
clip: {
padding: '12px',
overflow: 'hidden',
borderRadius: '12px',
backgroundColor: '#f3f4f6',
},
bleed: {
height: '24px',
margin: '-12px -12px 8px',
backgroundColor: '#6b7280',
},
nowrap: {
display: 'block',
whiteSpace: 'nowrap',
},
ring: {
padding: '12px',
overflow: 'hidden',
backgroundColor: '#f3f4f6',
},
ringed: {
width: '64px',
height: '24px',
borderRadius: '6px',
backgroundColor: '#d1d5db',
boxShadow: '0 0 0 8px #6366f1',
},
lines: {
height: '52px',
padding: '8px',
overflow: 'hidden',
backgroundColor: '#f3f4f6',
},
badge: {
position: 'relative',
padding: '12px',
backgroundColor: '#f3f4f6',
},
badgeDot: {
position: 'absolute',
top: '-6px',
insetInlineEnd: '-6px',
width: '16px',
height: '16px',
borderRadius: '8px',
backgroundColor: '#ef4444',
},
scroll: {
height: '48px',
padding: '8px',
overflow: 'auto',
scrollbarWidth: 'none',
backgroundColor: '#f3f4f6',
},
scrollContent: {
height: '120px',
backgroundImage: 'linear-gradient(#d1d5db, #374151)',
},
narrowCut: {
padding: '8px',
overflow: 'hidden',
textOverflow: {
default: 'clip',
'@media (max-width: 480px)': 'ellipsis',
},
whiteSpace: 'nowrap',
backgroundColor: '#f3f4f6',
},
});

/** Triggers that clip, cut, scroll or overflow their content, by name. */
const CUT_CASES = {
truncate: () => <>Quarterly report for the whole design team</>,
clip: () => (
<>
<div {...stylex.props(layoutStyles.bleed)} />
<span {...stylex.props(layoutStyles.nowrap)}>
Quarterly report for the team
</span>
</>
),
ring: () => <div {...stylex.props(layoutStyles.ringed)} />,
lines: () => (
<>
Quarterly report for the whole design team, edited today by three people
</>
),
badge: () => (
<>
Inbox
<span {...stylex.props(layoutStyles.badgeDot)} />
</>
),
scroll: () => <div {...stylex.props(layoutStyles.scrollContent)} />,
narrowCut: () => <>Quarterly report for the whole design team</>,
} as const;

const LAYOUTS = ['block', 'row', 'grid'] as const;

function TallContent() {
return <div {...stylex.props(layoutStyles.fill)}>Fills the trigger</div>;
}

function LayoutContent() {
return (
<>
<div {...stylex.props(layoutStyles.swatch)} />
<span>Quarterly report</span>
<span>Edited today</span>
</>
);
}

export const TouchTriggerLayouts: Story = {
name: 'Touch / trigger layouts',
parameters: {
docs: {
description: {
story:
'The press grows only the trigger’s own visual, an inner box that lays the children out as the trigger would. Each trigger here sits beside a plain box with the same style, and both lay out the same, a set-height trigger with a full-height child too. Below them, triggers that cut their text, clip a header pulled into their padding, clip a child’s ring, cut a multi-line label, let a badge overflow, or scroll draw their content as the plain box does. The last one cuts its text only in a narrow viewport.',
},
},
},
render: () => (
<div {...stylex.props(layoutStyles.page)}>
{LAYOUTS.map(layout => (
<div key={layout} {...stylex.props(layoutStyles.pair)}>
<ContextMenu
data-testid={`layout-${layout}`}
label="Report actions"
triggerXstyle={layoutStyles[layout]}
items={[
{label: 'Copy', icon: ClipboardIcon, onClick: () => {}},
{label: 'Share', icon: ShareIcon, onClick: () => {}},
]}>
<LayoutContent />
</ContextMenu>
<div
data-testid={`layout-${layout}-reference`}
{...stylex.props(layoutStyles[layout])}>
<LayoutContent />
</div>
</div>
))}
<div {...stylex.props(layoutStyles.pair)}>
<ContextMenu
data-testid="layout-tall"
label="Report actions"
triggerXstyle={layoutStyles.tall}
items={[
{label: 'Copy', icon: ClipboardIcon, onClick: () => {}},
{label: 'Share', icon: ShareIcon, onClick: () => {}},
]}>
<TallContent />
</ContextMenu>
<div
data-testid="layout-tall-reference"
{...stylex.props(layoutStyles.tall)}>
<TallContent />
</div>
</div>
{(Object.keys(CUT_CASES) as (keyof typeof CUT_CASES)[]).map(name => {
const Content = CUT_CASES[name];
return (
<div key={name} {...stylex.props(layoutStyles.cutPair)}>
<ContextMenu
data-testid={`layout-${name}`}
label="Report actions"
triggerXstyle={layoutStyles[name]}
items={[
{label: 'Copy', icon: ClipboardIcon, onClick: () => {}},
{label: 'Share', icon: ShareIcon, onClick: () => {}},
]}>
<Content />
</ContextMenu>
<div
data-testid={`layout-${name}-reference`}
{...stylex.props(layoutStyles[name])}>
<Content />
</div>
</div>
);
})}
</div>
),
};

export const TouchLongPressPopover: Story = {
name: 'Touch / long press, presentation="popover"',
parameters: {
docs: {
description: {
story:
'With `presentation="popover"`, ContextMenu keeps today’s menu on every device: a finger held for 500 ms opens it at the finger, with no growth and no iOS timeline. A finger on a device whose primary pointer is fine (a mouse or a trackpad) gets the same long press.',
},
},
},
render: () => (
<ContextMenu
data-testid="touch-context-menu"
label="Photo actions"
presentation="popover"
items={[
{label: 'Copy', icon: ClipboardIcon, onClick: () => {}},
{label: 'Share', icon: ShareIcon, onClick: () => {}},
{label: 'Save to Files', icon: ArrowDownTrayIcon, onClick: () => {}},
]}>
<div {...stylex.props(touchStyles.card)}>Hold for actions</div>
</ContextMenu>
),
};
Loading