Which product are you using?
PDF.js Express Viewer v8.7.5
Detailed description of issue
When zooming in and out after selecting text in the document viewer, the highlight layer becomes misaligned with the underlying text. This issue can appear after just a few zoom actions or may require more extensive zooming to reproduce.
Steps to Reproduce
- Open the document in the public demo viewer.
- Select a portion of text.
- Use the zoom in/out functionality several times.
- Observe that the text selection highlight no longer aligns correctly with the text.
Expected Result
The selected text highlight should remain aligned with the text regardless of zoom level.
Actual Result
The highlight layer shifts position, causing the visible selection to move out of sync with the text.
Does your issue happen with every document, or just one?
Every document
Please investigate and advise on a fix to keep the selection layer aligned during zoom operations.
A screen recording is attached for reference.