#69 : Apply partial offset

This commit is contained in:
Vadim
2021-09-08 00:09:11 +03:00
parent 9af127105f
commit 39b05730d4
3 changed files with 8 additions and 26 deletions

View File

@@ -40,12 +40,14 @@ function createStore() {
infinite,
pagesCount,
pagesToScroll,
clonesCountTail,
}) {
update(store => {
const newCurrentPageIndex = getNextPageIndexFn(infinite)({
currentPageIndex: store.currentPageIndex,
pagesCount,
pagesToScroll,
clonesCountTail,
})
return {
...store,