Repository navigation
Fade the media viewer's controls out quickly on close - #122
Merged
Merged
Conversation
Closing the full-screen viewer faded its bottom bar and page count over the whole flight home, so they stayed faintly drawn over the transcript and the message field until the image landed (and past it when closing from zoom). Close now hides them with the same 0.15 s fade that drag to dismiss and predictive back already use, so they are gone well before the image lands. Open and the drawing hand-off still time the controls to their flights. Verified: scripts/check.sh :feature:media on the Android VM (passes). Emulator, session-lab images checkpoint, against the v0.8.0 release (same viewer code as dev): closing from zoom with Back, the 8 / 11 count took about 280 ms (light) and 220 ms (dark) to fade before, about 130 ms and 115 ms now. Close button, Back without zoom, drag part-way and let go, and predictive back part-way and cancel all checked: the controls hide during the gestures and come back on cancel. Not checked on a phone.
Closed
This branch was previously deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closing the full-screen image viewer faded its bottom bar and the "8 / 11" count over the whole flight home, so they stayed faintly drawn over the transcript and the message field until the image landed, and past it when closing from zoom.
Now close hides them with the same 0.15 s fade that drag to dismiss and predictive back already use, so they're gone well before the image lands. Open and the drawing hand-off still time the controls to their flights.
Checked
scripts/check.sh :feature:mediaon the Android VM (passes). On the emulator against the v0.8.0 release, which has the same viewer code asdev, closing from zoom with Back: the count took about 280 ms to fade before and about 130 ms now in light mode, and about 220 ms vs 115 ms in dark. The close button and Back without zoom also clear the controls before landing. Dragging part-way and letting go, and predictive back part-way then cancelling, hide the controls during the gesture and bring them back. The jump when closing from zoom is a separate problem and is still there. Not checked on a phone.The video shows a zoom-in-then-Back close at real speed, then the bottom of the screen at 1/4 speed in light and dark, with the release on the left (top) and this branch on the right (bottom).
viewer-chrome-close.mp4