-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
Canvas deleted from page division when scroll #1133
Comments
I'm not sure I can reproduce your issue. Are you able to reproduce it here - https://vadimdez.github.io/ng2-pdf-viewer/ ? |
|
if you scroll back to the first page, can you see it? |
Yes when i get back to page 1 i can see it again, but issue is right away like i have placed division over pdf canvas that also delete from it. |
Yes, this is the expected behaviour from PDFJS and so also from ng2-pdf-viewer. PDFJS renders only the visible pages, which are in the viewport plus some pages before and after this pages in the viewport. Pages which are not more in the visible range are "offloaded", meaning their canvas are removed from the DOM, to reduce memory footprint. If this page becomes visible again, the canvas will be readded to the DOM. Maybe your expaction from the option "Show all pages" is leading in the wrong way? |
Yeah i think so, is there any way i can stop the offload or it or can set the visible pages range ? |
Not that i know, as this is deeply baked into PDFJS. |
Should be closed as above also #1120 |
When PDF has more then 10 pages and when i scroll down to page number 11 it blacks the first page canvas due to it lost the dropped item on canvas.
The text was updated successfully, but these errors were encountered: