Animate (smooth scroll) to the given page to the middle of the viewport.
Instantly brings the item at page
to the middle of the viewport.
The index of the currently selected page.
The current offset from the start of currentPage
, as a ratio of the page width.
that will be used to dispatch drag events when this list is being dragged.
The number of pages to display.