Skip to content

Commit 11488b7

Browse files
committed
fix: unusing views after non-continuous scroll
1 parent 40f58b3 commit 11488b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-virtual-scroller/src/components/RecycleScroller.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ export default {
495495
const continuous = startIndex <= this.$_endIndex && endIndex >= this.$_startIndex
496496
497497
if (this.$_continuous !== continuous) {
498-
if (continuous) {
498+
if (!continuous) {
499499
views.clear()
500500
unusedViews.clear()
501501
for (let i = 0, l = pool.length; i < l; i++) {

0 commit comments

Comments
 (0)