@infinite-list/data-model
Advanced tools
Comparing version 0.2.45-recycle-group.17 to 0.2.45-recycle-group.19
{ | ||
"name": "@infinite-list/data-model", | ||
"version": "0.2.45-recycle-group.17", | ||
"version": "0.2.45-recycle-group.19", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "dist", |
@@ -635,7 +635,11 @@ import noop from '@x-oasis/noop'; | ||
if (Math.abs(velocity) <= 1) { | ||
const startIndex = Math.max(visibleStartIndex - Math.ceil(recycleBufferedCount / 2), this._recycler.thresholdIndexValue) | ||
const startIndex = Math.max( | ||
visibleStartIndex - Math.ceil(recycleBufferedCount / 2), | ||
this._recycler.thresholdIndexValue | ||
); | ||
this._recycler.updateIndices({ | ||
safeRange, | ||
startIndex, | ||
maxCount: visibleEndIndex - startIndex + 1 + recycleBufferedCount, | ||
maxCount: | ||
visibleEndIndex - visibleStartIndex + 1 + recycleBufferedCount, | ||
step: 1, | ||
@@ -656,7 +660,11 @@ /** TODO !!!!!! */ | ||
} else { | ||
const startIndex = Math.max(visibleStartIndex - recycleBufferedCount, this._recycler.thresholdIndexValue) | ||
const startIndex = Math.max( | ||
visibleStartIndex - recycleBufferedCount, | ||
this._recycler.thresholdIndexValue | ||
); | ||
this._recycler.updateIndices({ | ||
safeRange, | ||
startIndex, | ||
maxCount: visibleEndIndex - startIndex + 1 + recycleBufferedCount, | ||
maxCount: | ||
visibleEndIndex - visibleStartIndex + 1 + recycleBufferedCount, | ||
step: 1, | ||
@@ -663,0 +671,0 @@ /** TODO */ |
@@ -110,3 +110,3 @@ import FixedBuffer from './FixedBuffer'; | ||
) { | ||
if (index < this._thresholdIndexValue) continue | ||
if (index < this._thresholdIndexValue) continue; | ||
const itemMeta = this._owner.getFinalIndexItemMeta(index); | ||
@@ -127,4 +127,3 @@ | ||
if (!itemMeta.ignoredToPerBatch) | ||
count++; | ||
if (itemMeta && !itemMeta.ignoredToPerBatch) count++; | ||
} | ||
@@ -131,0 +130,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2589003
33909