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

[Research][PDFViewer] Incorrect scrolling when having pages of different sizes #2155

Open
WissamProgress opened this issue Apr 10, 2024 · 0 comments
Labels
KendoReact pkg:PdfViewer POC Item which includes a technical research, specification and a working POC code base

Comments

@WissamProgress
Copy link
Collaborator

I'm submitting a...

  • Suggestion for improvement

Current behavior

Having pages of different sizes (portrait and landscape) causes unexpected behaviours with the scrolling. Scrolling will show a different page than the scrolled-to page in the input in the toolbar, and the scrollToPage method does not scroll to the correct page.

This is happening because the scrolling takes into consideration the current page height. This should be researched whether it should be considered as a limitation or a bug.

Expected behavior

The scrolling works no matter the page size.

Minimal reproduction of the problem with instructions

  1. Render pages of different sizes for the PDF Viewer - https://codesandbox.io/p/sandbox/determined-dawn-8wj346?file=%2Fapp%2Fmain.jsx
  2. Click the Scroll To Page 3 button that should scroll to page 3
  3. Go back to the first page and now try scrolling with the mouse wheel. Scrolling to the last page that is page 5 shows that you scrolled to page 3.

Ticket ID: 1645911

@WissamProgress WissamProgress added POC Item which includes a technical research, specification and a working POC code base pkg:PdfViewer KendoReact labels Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
KendoReact pkg:PdfViewer POC Item which includes a technical research, specification and a working POC code base
Projects
None yet
Development

No branches or pull requests

1 participant