kendo-react icon indicating copy to clipboard operation
kendo-react copied to clipboard

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

Open WissamProgress opened this issue 1 year ago • 0 comments

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 avatar Apr 10 '24 16:04 WissamProgress