We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a21e191 commit 86d0d07Copy full SHA for 86d0d07
packages/vue-virtual-scroller/src/components/RecycleScroller.vue
@@ -494,17 +494,8 @@ export default {
494
495
const continuous = startIndex <= this.$_endIndex && endIndex >= this.$_startIndex
496
497
- if (this.$_continuous !== continuous) {
498
- if (!continuous) {
499
- views.clear()
500
- unusedViews.clear()
501
- for (let i = 0, l = pool.length; i < l; i++) {
502
- view = pool[i]
503
- this.unuseView(view)
504
- }
505
506
- this.$_continuous = continuous
507
- } else if (continuous) {
+ // Unuse views that are no longer visible
+ if (continuous) {
508
for (let i = 0, l = pool.length; i < l; i++) {
509
view = pool[i]
510
if (view.nr.used) {
0 commit comments