Merge branch 'main' into feature/#33_Change-pages-programmatically

# Conflicts:
#	docs/index.js
This commit is contained in:
Vadim
2021-06-30 22:08:16 +03:00
4 changed files with 6 additions and 4 deletions

View File

@@ -118,7 +118,6 @@
children[pageIndex].style.maxWidth = `${pageWidth}px`
}
store.init(initialPageIndex + Number(infinite))
offsetPage(false)
}
@@ -154,6 +153,8 @@
loaded = [0, pagesElement.children.length - 1]
await tick()
infinite && addClones()
store.init(initialPageIndex + Number(infinite))
applyPageSizes()
}
applyAutoplay()