-
I would like to persist the page number of a document when the user clicks a button and come back to that page number when the user wants. The latter is easy, but how do I get hold of the current page number in the first place? As I am using the Display all pages mode, the user is scrolling the document rather than "turning" individual pages. Is there a way to listen to the event that a new page appears on the screen? onRenderSuccess does not seem to do the trick as all pages of my document are rendered (but not displayed) at app start. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I suppose you could use IntersectionObserver API to get callback whenever a given page appears or disappears from the viewport. |
Beta Was this translation helpful? Give feedback.
I suppose you could use IntersectionObserver API to get callback whenever a given page appears or disappears from the viewport.