Skip to content

Improper text selection (selection position offset) during multi-page view (Odd or even spreads) #13605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AesaraB opened this issue Jun 21, 2021 · 1 comment · Fixed by #13606

Comments

@AesaraB
Copy link

AesaraB commented Jun 21, 2021

Attach (recommended) or Link to PDF file here: Pages removed to avoid copyright issues, issue still reproducible here

Configuration:

  • Web browser and its version: 89.0.1
  • Operating system and its version: Windows 10 build 19041.1052
  • PDF.js version: 2.9.45
  • Is a browser extension: No

Steps to reproduce the problem:

  1. Open the attached document.
  2. Attempt to select text to observe correct behaviour.
  3. Select a multi-page view from the pdf.js viewer.
  4. Attempt to select text to observe improper behaviour.

What is the expected behavior?
un1

What went wrong? Attached Below
un2

@AesaraB AesaraB changed the title Improper text selection (text position) during multi-page view (Odd or even spreads) Improper text selection (selection position offset) during multi-page view (Odd or even spreads) Jun 21, 2021
@AesaraB
Copy link
Author

AesaraB commented Jun 21, 2021

The offset text appears to use a positive value for the Left property, instead of a negative one. This positive Left is indeed correct when in single-page view, but when in multi-page view it becomes evident that the inverse of the quantity properly aligns the text. As seen above, the offset doesn't seem to be relative to the viewer or absolute to the document body, as the same right-leaning offset occurs on the right page.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants