#31 : Fix autoplay progress for non infinite case
This commit is contained in:
@@ -174,7 +174,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function applyAutoplay() {
|
function applyAutoplay() {
|
||||||
if (!infinite && currentPageIndex === pagesCount - 1) {
|
// prevent progress change if not infinite for first and last page
|
||||||
|
if (
|
||||||
|
!infinite && (
|
||||||
|
(autoplayDirection === NEXT && currentPageIndex === pagesCount - 1) ||
|
||||||
|
(autoplayDirection === PREV && currentPageIndex === 0)
|
||||||
|
)
|
||||||
|
) {
|
||||||
progressManager.reset()
|
progressManager.reset()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user