#31 : Fix non infinite case
This commit is contained in:
@@ -174,7 +174,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function applyAutoplay() {
|
function applyAutoplay() {
|
||||||
console.log('autoplay', autoplay)
|
if (!infinite && currentPageIndex === pagesCount - 1) {
|
||||||
|
progressManager.reset()
|
||||||
|
return
|
||||||
|
}
|
||||||
if (autoplay) {
|
if (autoplay) {
|
||||||
autoplayDirectionFnDescription[autoplayDirection]()
|
autoplayDirectionFnDescription[autoplayDirection]()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user