Skip to content

Fade the media viewer's controls out quickly on close - #122

Merged
Tarquinen merged 1 commit into
devfrom
viewer-chrome-close
Nov 17, 2026
Merged

Tarquinen merged 1 commit into
devfrom
viewer-chrome-close

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

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:media on the Android VM (passes). On the emulator against the v0.8.0 release, which has the same viewer code as dev, 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

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.
@Tarquinen
Tarquinen merged commit 79e3583 into dev Nov 17, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 18, 2026

This branch was previously deployed

1 inactive deployment
release — 37570208 Deployed Nov 17, 2026 by Tarquinen via check #405
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant