Skip to content

Keep the grid's scroll position when the main screen re-renders - #3

Merged
danblu3 merged 1 commit into
danblu3:mainfrom
pawndev:fix/keep-scroll-on-refresh
Oct 13, 2026
Merged

danblu3 merged 1 commit into
danblu3:mainfrom
pawndev:fix/keep-scroll-on-refresh

Conversation

@pawndev

@pawndev pawndev commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Finishing a download (or removing a game, making labels, refreshing the library) re-renders the whole main screen, which rebuilt the scrolling .content element and sent the view back to the top. refreshMain now saves and restores the scroll of the grid and the drawer around render(). Opening a game's drawer still starts it at the top.

Finishing a download (or removing a game, making labels, refreshing the
library) re-renders the whole main screen, which rebuilt the scrolling
.content element and sent the view back to the top. refreshMain now saves
and restores the scroll of the grid and the drawer around render().
Opening a game's drawer still starts it at the top.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@danblu3
danblu3 merged commit 272b1bd into danblu3:main Oct 13, 2026
5 checks passed
@pawndev
pawndev deleted the fix/keep-scroll-on-refresh branch October 13, 2026 17:39
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