Repository navigation
fix(DropdownMenu): a finger's touch outside only closes the menu #12216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
vjeux
wants to merge
198
commits into
meta:main
Choose a base branch
from
vjeux:menu-outside-tap-swallow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,461
−85
Draft
Changes from 194 commits
Commits
Show all changes
198 commits
Select commit
Hold shift + click to select a range
3dd581e
feat(core): one progress module for the motion foundation
vjeux 3cfb3b1
refactor(animatedLayout): take the settle spring's progress from prog…
cixzhang 273da1e
feat(core): the rect morph's paths, the rect a grow-out presentation …
vjeux f1149cd
Merge remote-tracking branch 'origin/main' into motion/morph-path
cixzhang 131ca14
feat(core): one rect morph for touch presentations that grow out of a…
vjeux b9b630a
feat(TextInput, TextArea, NumberInput): fields stay above the keyboard
vjeux f19df27
fix(rectMorph): a handed-in animator stays on the element through a c…
cixzhang e3a43d0
fix(motion): one timed curve keeps a retargeted velocity, for the pag…
cixzhang c99210a
fix(rectMorph): a timed motion from rest plays its easing as given
cixzhang 3272828
docs(rectMorph): the timing follows the component's motion record
cixzhang c311399
docs(AST-099): TextInput, TextArea and NumberInput meet FR9
vjeux df642e0
Merge main into motion/morph-path
vjeux 8c8f726
Merge motion/morph-path into motion/rect-morph
vjeux 3fdca8f
fix(rectMorph): AST-094 links the morph; the proof imports a safe test
vjeux d4903e2
test(SnapPaging): the pager's bundle lists the progress module
vjeux 1b794af
test(motion): the popover's proofs read Popover's live geometry
vjeux 5dd6a6a
Merge motion/morph-path into motion/rect-morph
vjeux 3bfa524
refactor(motion): one eased progress, with a retargeted velocity
vjeux ad7f8fb
test(motion): the popover's turn-around reads Popover's live curves
vjeux 99d352d
Merge motion/morph-path into motion/rect-morph
vjeux 33a3ee8
docs(changeset): the rect morph's note names the eased-progress move
vjeux 2bf8f8a
Merge main into motion/rect-morph
vjeux 822013a
test(motion): the popover's turn-around compares opacity as drawn
vjeux 2651e17
Merge motion/morph-path into motion/rect-morph
vjeux d9d89ea
Merge main
vjeux 6354fa3
fix(motion): a popover's morph never reads an opacity below 0
vjeux dcfa346
Merge motion/morph-path into motion/rect-morph
vjeux 75391ad
feat(DropdownMenu): a finger or a pen opens the menu as it presses
vjeux 6b6310c
test(motion): the morph proofs drop the menu's old straight line
vjeux e8face7
Merge main
vjeux d08f0d3
Merge main
vjeux eb2c859
docs(DropdownMenu): open-on-press notes name the anchored menu
vjeux 3603adb
Merge main
vjeux de86bc9
sandbox: a page to try a menu's press under a finger
vjeux 7419b9d
Merge main
vjeux 927c081
Merge the open-on-press change into the rect morph stack
vjeux 61b57b9
feat(DropdownMenu): a finger's open grows the menu out of its trigger
vjeux badea5d
fix(DropdownMenu): under Reduce Motion a finger's open only fades in
vjeux 1f576a5
test(DropdownMenu): touch specs wait out a finger's grow
vjeux 75b3111
refactor(core): one Reduce Motion predicate for the animator and menu
vjeux b3d3565
fix(DropdownMenu): every copy of Core shares the grow's one load
vjeux 86871f9
fix(DropdownMenu): taps stay off the page until the menu shows
vjeux 36122dd
docs(AST-094): FR31 grows once the grow's code is loaded
vjeux be132da
Merge main
vjeux b08ab80
docs(AST-094): FR31's faded open closes with no shrink
vjeux 87ccfba
fix(keyboard): the scroll back's records are one per page across copies
vjeux 3f35abd
fix(DropdownMenu): the grow's code loads through the shared loader
vjeux b5e93ce
Merge main
vjeux e6190c0
fix(keyboard): a field focused as it mounts starts its session at attach
vjeux a71e804
Merge main
vjeux bf9675e
Merge the open-on-press change into the rect morph stack
vjeux 2e37b3a
Merge main and the open-on-press change
vjeux 78442d4
Merge commit 'ebb9ddecc0219bc6eaf3caf40b6e4e45f81dc0e5' into motion/r…
cixzhang 09bb9c2
fix(motion): existing callers keep easedProgress's values; the pager …
cixzhang b24c23c
test(paging): a retarget at the first instant goes on at the starting…
cixzhang 9d40852
test(paging): a 0 ms move is on its target at once, at rest
cixzhang 6c17632
test(motion): compare the callers' values with copies of the earlier …
cixzhang 542e150
Merge the open-on-press change into the rect morph stack
vjeux bdb2003
Merge the rect morph's new head
vjeux 3b7e253
refactor(core): one useMenuPress for every menu
vjeux 7093e59
refactor(keyboard): read Reduce Motion through reducedMotionFade
vjeux 55490ae
refactor(keyboard): the scroll back lives in keyboardTarget.ts
vjeux 08ae3b6
docs(AST-099): name the keyboard module's new cross-module exports
vjeux 92dd62a
Merge the open-on-press change into the rect morph stack
vjeux a831c2c
Merge the open-on-press change's rework
vjeux 60ed7c7
docs(AST-099): Gap 19, a field in a modal sheet shorter than tall
vjeux 2d41fe6
refactor(DropdownMenu): grow with the page, on Popover's surface motion
vjeux a88dfbb
docs(Popover): name the surface motion options DropdownMenu passes
vjeux cab4595
Merge main
vjeux a0bdb12
Merge main
vjeux 3b51d59
Merge the open-on-press change into the rect morph stack
vjeux 14f3d32
Merge the open-on-press change's main merge
vjeux c13c351
test(DropdownMenu): read the row under a held finger once the grow rests
vjeux ac25529
docs(AST-099): name Gap 19 where the fields meet FR9
vjeux e2bbbe7
refactor(input): one touch reader in the input stream
vjeux d4a7d3b
docs(AST-099): name the input stream's one touch reader
vjeux 18fcf70
Merge commit '7e7fbae0fa0ba389ad37fafdb26e6495fab19fd4' into motion/r…
cixzhang 801dc38
Merge main into the rect morph stack
vjeux 5a7e8b1
Merge main and the rect morph stack's live head
vjeux 6176b9d
docs(AST-094): name the morph path module
cixzhang f082fe6
Merge commit '6176b9dccc1986b83713e4c9dcf39688e7c5b3e6' into motion/r…
cixzhang b957453
docs(AST-094): name the rect morph module
cixzhang 138f80f
refactor(Popover): name the tap hold until the grow's first frame
vjeux 672d67a
Merge main into the rect morph stack
vjeux 55f0340
Merge main and the rect morph stack's live head
vjeux 6f51984
refactor(DropdownMenu): grow on Popover's own surface motion
vjeux ea3b6ce
Merge main, without the rect morph stack
vjeux d15f2d7
fix(Popover): grow from the trigger's box without its press scale
vjeux b074ed2
Merge main for useCommittedRefInto
vjeux dfbaecc
fix(DropdownMenu): commit presentSurfaceRef through useCommittedRefInto
vjeux 1a4c38a
refactor(DropdownMenu): read the click's press from the press model
vjeux 681ed71
docs(DropdownMenu): record the press report and the entrance without one
vjeux a2c2f3c
docs(DropdownMenu): word the press records in the present tense
vjeux 6c8aeaa
Merge main for the press model's committed refs
vjeux 0cd83b8
fix(DropdownMenu): mark a finger's open only where the menu opens
vjeux bfb1a32
Merge main
vjeux dd68a2a
fix(DropdownMenu): tie a finger's open to its gesture
vjeux a539222
fix(core): keep the keyboard store apart from copies of another shape
vjeux b9c1bdb
fix(DropdownMenu): an open from code plays the layer's entrance
vjeux bfb9d29
Merge main
vjeux 2ed29e9
refactor(core): state the keyboard store's constraint in its comment
vjeux 26af8e6
Merge main for the menu press's touch identifier
vjeux 827967d
fix(DropdownMenu): under Reduce Motion a menu fades out where it stands
vjeux edced5f
Merge main
vjeux e15b9fd
Merge main for the menu's show and hide refs at commit
vjeux a99b97f
Merge main
vjeux c765ff2
fix(DropdownMenu): say Reduce Motion fades only on a coarse pointer
vjeux 6a89434
Merge main for the layer's show from another trigger
vjeux babd93d
Merge main
vjeux 929b3a5
Merge main
vjeux 9fa057e
Merge main for the alert dialog's touch motion and the swipe actions
vjeux efe9125
Merge main for the popover's focus-return target
vjeux d6a5376
fix(Layer): an exit copy keeps the padding and colors of what it copies
vjeux 3529093
Merge the exit copy fix, with main
vjeux c0dc00f
test(DropdownMenu): a finger's close copy draws the menu's rows in place
vjeux f25d71c
test(Layer): the browser's popover style reaches the exit copy
vjeux f9885ce
docs(DropdownMenu): the press model's record says why no engine fits
vjeux 1acd00c
Merge the exit copy fix's test update
vjeux 2937d9a
Merge main into the exit copy fix
vjeux 37cf451
Merge main for the kept-inside hold's release
vjeux d8f3cff
fix(menu press): cancel a pick's touchend on the node the touch began on
vjeux 7373633
Merge main into the exit copy fix
vjeux f894ca8
Merge main
vjeux 946e2b5
Merge main
vjeux 6f3779e
Merge main
vjeux 804b708
Merge main
vjeux ec5dba0
Merge main
vjeux 2db3ef8
fix(DropdownMenu): a finger's open that waits still grows
vjeux 9c2a399
fix(menu press): swallow a Home Screen app's late click after a pick
vjeux 4a5172d
test(menu press): a later tap still acts; cite the records exercised
vjeux 5c3698c
Merge main
vjeux 315db84
Merge main
vjeux 67e2492
Merge main
vjeux 58de566
fix(DropdownMenu): a finger's touch outside only closes the menu
vjeux c820a48
docs(keyboard): record Back in Firefox for Android as a gap
vjeux 584d8a3
docs(keyboard): say that Gap 21 shows more often on main
vjeux 01f57af
Merge #9777
vjeux 80a6e92
Merge #8080
vjeux ad53d7f
Merge #11859
vjeux 5a216db
docs(keyboard): narrow the changeset for Back in Firefox for Android
vjeux 9318341
test(DropdownMenu): pin a waiting finger open that another press leaves
vjeux c3e3df7
Merge main
vjeux 76439a4
Merge #9777
vjeux f5ce8f7
Merge #8080
vjeux d94f17e
Merge #11859
vjeux 8982668
Merge #12179
vjeux 31f94f2
test(DropdownMenu): count no outside hold in the touch-grow stub
vjeux f1b8bf3
Merge main
vjeux 0bad538
fix(DropdownMenu): end an outside tap whose target left the page
vjeux 9596e56
refactor(Layer): keep the outside pan test in outsidePress
vjeux ea898e4
docs(DropdownMenu): a pan outside the menu now closes it
vjeux 42d1bf8
Merge #9777
vjeux 975f954
Merge #8080
vjeux 8186977
Merge #11859
vjeux ede7f12
Merge #12179
vjeux ddf9cdd
fix(DropdownMenu): a second finger after a pan is a new touch
vjeux 6ff65df
Merge main
vjeux ee30a11
Merge #8080
vjeux 7695cc7
Merge #11859
vjeux 962e51f
Merge #12179
vjeux 02b9ae6
Merge main
vjeux 5752d21
Merge #8080
vjeux 86bd90b
Merge #11859
vjeux 7057b76
Merge #12179
vjeux 53e66d6
Merge main
vjeux c112acf
Merge #8080
vjeux cc8b488
Merge #11859
vjeux 0f74470
Merge #12179
vjeux 093df78
Merge main
vjeux b892503
Merge #8080
vjeux f396896
Merge #11859
vjeux 56e3a2d
Merge #12179
vjeux 5fd736a
Merge #11859
vjeux 5c385e8
Merge main
vjeux 330eb1c
Merge #8080
vjeux dfa63db
Merge #12179
vjeux 49fc0a1
fix(DropdownMenu): a pick's late click stays guarded after touchend
vjeux 7f1fce5
Merge #12179
vjeux 4651f21
fix(DropdownMenu): one top-layer shield for a finger's open
vjeux d93fa3d
Merge #8080
vjeux 6aeaf3c
Merge #11859
vjeux f018190
Merge #12179
vjeux 00b99cf
refactor(clickGuard): keep the trust read in clickGuard.ts
vjeux 1dd80db
Merge #12179
vjeux 414ea36
fix(clickGuard): register the trust read like the guard's state
vjeux fedd051
Merge #12179
vjeux 67dc9e9
Merge main
vjeux a9e8913
Merge #12179
vjeux 647071c
Merge main
vjeux 3a27f09
chore: re-trigger the preview deployment (empty commit; tree unchanged)
vjeux 46a28a5
chore: re-trigger the preview deployment (empty commit; tree unchanged)
vjeux b15341f
Merge #12179
vjeux 48cc3c6
Merge main
vjeux 0bcb9df
Merge main
vjeux 000d16b
Merge main
vjeux 28c87b9
Merge main
vjeux 15d7c2d
Merge main
vjeux f8f2a83
Merge main into the menu outside tap fix
cixzhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@astryxdesign/core': patch | ||
| --- | ||
|
|
||
| [fix] Under a finger or a pen, a touch outside an open DropdownMenu now only closes it, as a native menu's does. The control under the finger no longer gets the touch's press, its compatibility mouse events or its click. A tap closes the menu at its lift, and a pan as it begins; the page still scrolls and zooms. A mouse and `presentation="popover"` keep their behavior. | ||
|
|
||
| @vjeux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking (regression). Line 21 already imports
Switch(it came frommain), so this second import makes Storybook stop while indexing the file ("Identifier 'Switch' has already been declared. (27:8)"), and the Storybook typecheck reportsTS2300: Duplicate identifier 'Switch'. Delete this line.