Skip to content
Discussion options

You must be logged in to vote

If you are using Scroller, the gaps are expected. Scroller is still laying out the whole document as a virtual scroll area; changing the current page or rendering only one page does not remove the total document spacing.

For a carousel/flip-book style view, I would not use Scroller for the main page area. Keep your own selected page state from the thumbnail click, then render only that page's layers, for example the same RenderLayer/selection/search layers you use inside renderPage, but with the selected pageIndex.

Use the scroll plugin's scrollToPage path when you want a full-document scroll layout. For "exactly one page centered in this div", model it as a single selected page view inst…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FadilCivils
Comment options

Answer selected by FadilCivils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants