Code cleanup

This commit is contained in:
Vadim
2021-09-05 21:22:39 +03:00
parent a61c0b70f4
commit 25c39de1b6

View File

@@ -273,7 +273,7 @@
async function jumpIfNeeded() {
let jumped = false
if (infinite) {
if (currentPageIndex === 0) { // oneSideClonesCount - 1) {
if (currentPageIndex === 0) {
await showPage(pagesCount - 2 * oneSideClonesCount, { animated: false })
jumped = true
} else if (currentPageIndex === pagesCount - oneSideClonesCount ) {