Swiping between items shows the next one's picture with its text (#471)

The preview a swipe draws beside the reader was built as the drag
began, so its pictures started loading then: its text showed first and
the picture popped in a moment later, flashing and pushing the text
down under the finger. Reported from the iOS app on an item with a
picture at its top.

The pictures of the items either side of the one open are now fetched
and decoded when it opens (a few each, parsed with DOMParser, which
loads nothing itself), so the preview draws them at once. And the end
of a swipe keeps the preview over the reader until the new item's
pictures are decoded, at most 300 ms, instead of swapping in the same
moment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 00:52:39 +00:00
parent 2b06db9d26
commit f652e6906b
3 changed files with 27 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Swiping between items on a phone no longer flashes: the pictures of the items either side are loaded ahead, so the preview under your finger shows its picture with its text, and the swipe ends only once the new item's pictures are ready (#471).
- Deleting a downloaded file, marking everything read, deleting a signal and the other actions that ask first now ask in the page's own dialog, so they go ahead in the iOS app, which answered the browser's question Cancel without showing it (#462).
- A page kept for offline from before a deploy, shown on waking before the network was back, is loaded again rather than run with the new script, which left it dead until reloaded by hand (#449).
- On a phone the totals along the bottom (All Subscriptions: N items, N unread) are text alone, centred just above the home indicator, instead of a band and rule that ran to the bottom edge and were cut off by the screen's rounded corners (#424).