Repository navigation
perf(Popover): the touch presentation starts in the next frame, not in the task that opens it #8662
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
Closed
Closed
Changes from 38 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
b83240b
chore(core): the layer runtime's exit copy, for a touch presentation'…
vjeux fbe71df
feat(Layer): one input hold, first used by Dialog, Drawer and MobileN…
vjeux 288070e
feat(Popover): under a finger, it grows out of its trigger and shrink…
vjeux 904c29f
test(Popover): browser proofs of the touch presentation's grow and sh…
vjeux 1fd5176
Merge #8342 fbe71dfa6f (the shared input hold) into the Popover touch…
vjeux e0a9bb5
fix(Popover): under a finger, a tap during the presentation is ignore…
vjeux 46d134e
perf(Popover): the touch presentation starts in the next frame
vjeux 1fda019
chore(core): the layer runtime's exit copy, for a touch presentation'…
vjeux 515dd46
Merge branch 'main' into uikit/c26-layer-exit-copy
cixzhang 415707b
feat(Popover): under a finger, it grows out of its trigger and shrink…
vjeux 5f98e88
test(Popover): browser proofs of the touch presentation's grow and sh…
vjeux 134e7c9
Merge the updated #9823 into the Popover presentation hold (tree matc…
cixzhang 1f9c307
Merge the updated #8223 into the Popover next-frame presentation (fra…
cixzhang 1cc771f
Merge branch 'main' into uikit/c26-layer-exit-copy
vjeux 940af75
Merge the updated lower stack branch into uikit/c26-popover-present (…
cixzhang 62d1a30
Merge the updated lower stack branch into uikit/c27-popover-present-p…
cixzhang 1f71ae2
Merge the updated lower stack branch into uikit/c26-popover-presentat…
cixzhang 9377211
Merge the updated lower stack branch into uikit/c26-popover-present-n…
cixzhang f452e88
Merge #8187's input hold into the Popover touch proofs
vjeux 456d9ab
feat(Popover): a touch during the growth is ignored
vjeux 04df339
test(Popover): browser proofs of the hold while the popover grows
vjeux c7a5056
docs(AST-094): Popover's input hold starts on the frame after the open
vjeux 544ddee
fix(core): the exit copy keeps no closed layer
vjeux 0e69c33
docs(core): the exit copy's JSDoc states the empty-canvas rule once
vjeux 04268f2
Merge the updated lower stack branch into uikit/c26-popover-present (…
cixzhang 8762a32
Merge the updated lower stack branch into uikit/c27-popover-present-p…
cixzhang 37c92e9
Merge the folded #9823 into the Popover next-frame presentation (#822…
cixzhang 9014e18
test(Popover): time the rendering proof from each motion's start
vjeux 6874892
test(Popover): the blocked-main-thread proof blocks from the page and…
vjeux 00abbbe
Merge the updated lower stack branch into uikit/c26-popover-present-n…
cixzhang 223875a
Merge main into the layer exit copy branch (layer-runtime.md verifica…
cixzhang a46586c
Merge the updated lower stack branch into uikit/c26-popover-present (…
cixzhang 58629be
Merge the updated lower stack branch into uikit/c27-popover-present-p…
cixzhang ffe2352
Merge the updated lower stack branch into uikit/c26-popover-present-n…
cixzhang 6ecb859
Merge main into the layer exit copy branch (#8147 landed)
cixzhang e8cd6f6
Merge the updated lower stack branch into the Popover branch (#8147 l…
cixzhang da69f83
Merge the updated lower stack branch into the Popover branch (#8147 l…
cixzhang 9d5eb78
Merge the updated lower stack branch into the Popover branch (#8147 l…
cixzhang d7905ea
Merge main into the layer exit copy branch (placeOver's beforeNode be…
cixzhang f642349
Merge the updated lower stack branch into the Popover branch
cixzhang 5b74d42
Merge the updated lower stack branch into the Popover branch
cixzhang 10c7b84
Merge the updated lower stack branch into the Popover branch
cixzhang c2dc518
Merge main into the layer exit copy branch (#10224 landed)
cixzhang 0981880
Merge the updated lower stack branch into the Popover branch (#10224 …
cixzhang 9c96e82
feat(Popover): the touch presentation starts in the next frame
vjeux 1ddefb6
Merge #8187 (next-frame start folded in) into the Popover touch proofs
vjeux 773765a
test(Popover): browser proofs of the next-frame start
vjeux 4813761
Merge the folded browser proofs into the next-frame presentation
vjeux 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 | ||
| --- | ||
|
|
||
| [chore] Internal: the layer runtime gains one exit copy for touch presentations that animate a popover out: a static, inert copy of the closing popover, shown only in the top layer where the popover was drawn, for the close to play on. Core's other inert copies now join no form, carry no anchor name and keep their color scheme, as their documentation says. | ||
|
|
||
| @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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@astryxdesign/core': patch | ||
| --- | ||
|
|
||
| [feature] Under a finger (a coarse primary pointer, on any touch device), Popover grows out of its trigger, wide before tall, with its edge held on the trigger, and shrinks back into the trigger when it closes. The growth plays the theme's `--duration-medium-min` (in the Storybook theme, the step nearest iOS's 206 ms growth) with its entrance easing, and the shrink plays its exit duration and easing, on the compositor. A close during the growth, or an open during the shrink, turns back from where the popover is. With reduced motion it cross-fades in and out, opacity only, in 200 ms or less. A fine primary pointer (a mouse) keeps its entrance. A tap that lands while it grows is ignored, and a pan started then scrolls nothing. The shrink plays on the layer runtime's exit copy, of which Popover is the first user. The growth starts in the next animation frame, before that frame paints, so the opening tap does no extra layout. | ||
|
|
||
| @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
Oops, something went wrong.
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.
This sentence, and Popover's Current-state impact (
Popover.spec.md:76-79), record the window thatpopoverSurfaceMotion.tscreates, and that code now sits in #8187. Judged on its own, #8187 ships a touch that reaches the page in the first frame while FR35 still forbids it, and rejecting this pull request would no longer remove the window. Moving both lines into #8187 fixes it; this pull request then has nothing of its own left.