Skip to content
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

Page shift on zooming #1127

Open
bitforcesrl opened this issue Aug 28, 2024 · 0 comments
Open

Page shift on zooming #1127

bitforcesrl opened this issue Aug 28, 2024 · 0 comments

Comments

@bitforcesrl
Copy link

bitforcesrl commented Aug 28, 2024

Bug Report or Feature Request (mark with an x)
- [x] Regression (a behavior that used to work and stopped working in a new release)
- [ ] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

The issue is present in the latest version of the library, 10.2.2. The first version where the issue is not present is 10.0.0.
OS: Mac OS 14.3.1 (23D60)
Browser: Chrome, Firefox and Safari

Problem Description: When zooming (in or out) on the document, something strange happens.
If you look closely, you can see that the document shifts to the left, and at times, a horizontal scrollbar appears.
When you scroll the document, the PDF is centered back, and everything works as expected.
The problem is more evident when zooming out.

The described issue is also present on the demo page: https://vadimdez.github.io/ng2-pdf-viewer/

In the following image, the PDF is aligned to the left after zooming out. Scrolling the page restores the PDF to the center.

Screenshot 2024-08-28 at 17 57 49
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

No branches or pull requests

1 participant