Repository navigation
Detail: Back from a cast page keeps the live body's scroll - #1099
Merged
Merged
Conversation
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]>
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. |
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.
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_memorycallsrestore(), which setsscroll_targetto 0, whilereveal_focusholds off until the return stops waiting.restore_memorynow 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 throughrestore_memorywith the re-read owed (fails without the change). Checked on a television: Back from a cast member no longer jumps to the top.