Repository navigation
Conversation
Remember the last mouse-clicked word or selected text location and reveal a temporary blue highlight with a right-edge pointer when the viewer loses focus. Keep the cue visible on return, restore it after page rerenders, and clear stale coordinates after rotation. Add positioning and wiring regression tests. Co-authored-by: ChatGPT 6 <noreply@openai.com>
Include the new nearest-text and focus-marker regression suite in the repository's explicit npm test command so pull-request builds execute it. Co-authored-by: ChatGPT 6 <noreply@openai.com>
Member
Author
|
CI verification on the latest branch head ( The workflow ran |
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.
Summary
Add a return-to-reading cue that follows the text the reader last clicked or selected. On window blur or tab hide, the viewer places a blue text highlight and a left-pointing triangle along the PDF page's right edge, in contrast to the amber search-result arrow on the left. The cue stays visible on return until the reader clicks another location in the document.
The cue retains page-relative coordinates so it survives zoom and page render-window recycling, resets when the document is rotated, is ignored during printing, and requires no new browser permissions or persistent text storage.
Verification
mainparent, with the viewer HTML wired to the new module and stylesheet.