Closed sambengtson closed 7 years ago
scrollToElement never sets the currentPage
Here's my fork with a fix:
https://github.com/jonkrusell/iscroll/commit/34bfcff1a0e596e89aa2d0fbfb7a563ced4ce2a2
@jonkrusell Thanks. Glad somebody is paying attention on here.
Usage is:
scroll.scrollToElement(scrollElement, 600, 0, -50, IScroll.utils.ease.circular);
If calling next() or prev() shortly after, it seems that it scrolls all the way back to the top and focuses on the second element. Am I missing something here? I've tried a couple of things without much luck.