Fix adjacent pages

This commit is contained in:
Vadim
2021-01-27 23:28:52 +03:00
parent 7acfb04df8
commit 3a5fabd4d5

View File

@@ -68,7 +68,7 @@
let pagesElement let pagesElement
// used for lazy loading images, preloaded only current, adjacent and cloanable images // used for lazy loading images, preloaded only current, adjacent and cloanable images
$: loaded = getAdjacentIndexes(originalCurrentPageIndex, originalPagesCount) $: loaded = getAdjacentIndexes(originalCurrentPageIndex, originalPagesCount, infinite)
function applyPageSizes() { function applyPageSizes() {
const children = pagesElement.children const children = pagesElement.children