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:
@@ -335,6 +335,7 @@ function selectEntry(e: Entry,turning=false){
|
||||
showDetail(e);
|
||||
const d=$('#detail'); if(d) d.scrollTop=0;
|
||||
if(turning) loadAhead();
|
||||
warmNeighbours();
|
||||
}
|
||||
|
||||
/// Where the next page starts. On the Unread tab the items read here are no longer unread on the
|
||||
|
||||
Reference in New Issue
Block a user