Skip to content

Detail: Back from a cast page keeps the live body's scroll - #1099

Merged
GLinnik21 merged 2 commits into
plxnative:mainfrom
tiper:up/detail-back-keeps-scroll
Oct 29, 2026
Merged

GLinnik21 merged 2 commits into
plxnative:mainfrom
tiper:up/detail-back-keeps-scroll

Conversation

@tiper

@tiper tiper commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Going Back to a Detail page that was only covered (for example from a cast member’s page) ran the page to the top and then back to the saved card once the re-read landed. restore_memory calls restore(), which sets scroll_target to 0, while reveal_focus holds off until the return stops waiting. restore_memory now keeps the scroll the body was left at; a rebuilt body starts at 0 anyway. Regression test: a live body at scroll 839 keeps it through restore_memory with the re-read owed (fails without the change). Checked on a television: Back from a cast member no longer jumps to the top.

tiper and others added 2 commits October 28, 2026 00:14
restore_memory ran restore(), which sets scroll_target to 0, on a body that was only covered.
reveal_focus holds off while the return waits for its re-read, so the page ran to the top and
back once the refetch landed. restore_memory now keeps the scroll the body was left at; a
rebuilt body starts at 0 anyway.

Signed-off-by: Tiago Pereira <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A covered body keeps its scroll through restore_memory, but a body that comes back with no detail
and then loses its re-read has nothing to move it: reveal_focus returns without a detail and the
hero, the only thing drawn, is faded out past HERO_FADE. pump_restore's give-up resets scroll_target.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 0c51885 into plxnative:main Oct 29, 2026
13 checks passed
@GLinnik21

Copy link
Copy Markdown
Collaborator

Merged, thank you! I added one small thing on top: if the re-read fails on the way back, the page goes back to the top instead of resting on the faded hero.

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.

2 participants