Fix paging bug where if you go to a page and scroll down further than a previous (shorter) page can get to, the document is scrolled to bottom and looks empty. #6

Merged
peteyboy merged 1 commits from fix-paging-bug into develop 2026-06-12 17:32:55 -04:00

1 Commits

Author SHA1 Message Date
bec03ff251 Fix paging bug where if you go to a page and scroll down further than a previous (shorter) page can get to, the document is scrolled to bottom and looks empty.
Used AI to figure this out after some back and forth, the 'ypos' function was not obvious.

Ideally I would add a feature that actually tracks the scroll position with the history, so you would go back to the line/page where you came from, preserving previous scrolling. The load (page,1) code in here doesn't reall do that as intended in light of the bugfix discovery.

Also improved the goto_link and goto_page dialog/feature so they handle bogus links and bogus URLs better.
2026-06-12 21:27:39 +00:00