Skip to content

fix(fixed-layout): restore scrolled PDF annotations - #76

Merged
chrox merged 2 commits into
mainfrom
fix/scrolled-pdf-annotations-5586
Aug 15, 2026
Merged

fix(fixed-layout): restore scrolled PDF annotations#76
chrox merged 2 commits into
mainfrom
fix/scrolled-pdf-annotations-5586

Conversation

@chrox

@chrox chrox commented Aug 15, 2026

Copy link
Copy Markdown
Member

Fixes the overlay lifecycle for PDF pages in scrolled mode.

The renderer starts the asynchronous onZoom work, creates the annotation overlayer, and then PDF.js replaces the text-layer DOM. That leaves saved and synced highlights holding ranges into detached nodes.

Refresh the overlayer after onZoom settles so annotations are resolved against the current text layer, matching the existing paginated PDF path.

Related: readest/readest#5586

Verification is covered by a controlled browser regression test in readest/readest#5719.

@chrox
chrox merged commit 9fde61a into main Aug 15, 2026
2 checks passed
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