#69 : Split fns

This commit is contained in:
Vadim
2021-09-10 12:03:56 +03:00
parent 2949683d1a
commit f911338c4b
7 changed files with 636 additions and 448 deletions

View File

@@ -13,19 +13,22 @@
removeResizeEventListener
} from '../../utils/event'
import {
getAdjacentIndexes,
getClones,
applyClones,
getPageSizes,
applyPageSizes,
getCurrentScrollIndex,
getPagesCountWithoutClones,
getClonesCount,
getPartialPageSize,
getScrollsCount,
getPageIndexByScrollIndex,
getIndexesOfPagesWithoutClonesInScroll,
} from '../../utils/page'
import {
getClones,
applyClones,
getPagesCountWithoutClones,
getClonesCount,
} from '../../utils/clones'
import {
getAdjacentIndexes,
} from '../../utils/lazy'
import { get } from '../../utils/object'
import { ProgressManager } from '../../utils/ProgressManager'
import { wait } from '../../utils/interval'
@@ -281,8 +284,6 @@
await tick()
infinite && addClones()
// TODO: validate initialScrollIndex
store.init(getPageIndexByScrollIndex({
infinite,