Skip to content

preserve scroll position when changing display options#350

Open
duhdugg wants to merge 1 commit intoSTEPBible:masterfrom
duhdugg:preserve-scroll-position-when-changing-display-options
Open

preserve scroll position when changing display options#350
duhdugg wants to merge 1 commit intoSTEPBible:masterfrom
duhdugg:preserve-scroll-position-when-changing-display-options

Conversation

@duhdugg
Copy link
Copy Markdown
Contributor

@duhdugg duhdugg commented Mar 21, 2026

User story: I'm reading Psalm 119 on mobile. Halfway through, I want to add a translation and switch to column view. Or maybe I want to toggle verse numbers on or off. When I do any of this, I get scrolled back to the top and have to manually find my last known position again.

This PR solves for that by detecting the first verse in view before re-rendering the new data, then scrolling to that position after the re-render is complete.

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.

1 participant