Repository navigation
feat(documents): scroll through every page of a document in one view - #267
Merged
Merged
Conversation
Pages sit one under another and are drawn as they near the view. Scrolling turns the page being read (page field, thumbnails and text follow); turning a page, choosing a block, a find match or zooming scrolls to it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0157J3XzJSGym9mTScZJU1uB
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.
Requested by Adeel · project thread
Description
Before: a multi-page document's page showed one page at a time; reading on meant clicking Next or a thumbnail for every page.
After: every page sits one under another and you scroll through them. Pages are drawn as they near the view (blank placeholders of the right size until then) and kept once drawn. Scrolling updates the page field, thumbnails and the text panel; Previous/Next, the page field, thumbnails, ←/→, choosing a block, find matches, People/Objects and
?page=all scroll to the page (or the marked block). Zoom keeps the page being read in view.How:
PageStagerenders aStagePageper page; anIntersectionObserveron the scroll box marks pages to draw (the page being read and its neighbours always are).DocViewgainsjump(moves made elsewhere, which scroll the stage) andsee(scrolling, which only updates the page).pageAtOffsetpicks the page under the reader's eye line.Motivation and Context
Fewest clicks: being locked to a single page goes against it.
Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md.🤖 Generated with Claude Code
https://claude.ai/code/session_0157J3XzJSGym9mTScZJU1uB
Generated by Claude Code