Closed DotCoyote closed 6 years ago
Hi,
in your documentation, you write
The scrollStart and scrollEnd listener will receive the slide number as its only argument; [...]
which would be very useful for me ;) Unfortunately, your version doesn't return a slidenumber at scrollEnd, but "undefined"
I fixed that in a local copy:
smartscroll.js:174
windowTop = getWindowTop(); if (options.eventEmitter) { sectionIndexAtWindowMiddle = getSectionIndexAt(windowTop + $(window).height() / 2); options.eventEmitter.emitEvent('scrollEnd', [sectionIndexAtWindowMiddle]); }
@CinKon it must have slipped my mind! Thanks for pointing it out! I hope to go through all the bugs in the issue tracker soon and update them all in one go.
Just ran across this today, thanks for the fix @CinKon
Fixed in Release 2.5.3. Thank you @CinKon!
Hi,
in your documentation, you write
which would be very useful for me ;) Unfortunately, your version doesn't return a slidenumber at scrollEnd, but "undefined"
I fixed that in a local copy:
smartscroll.js:174