@@ -59,7 +59,7 @@ export default {
59
59
},
60
60
61
61
active (value ) {
62
- if (value && this .$_pendingVScrollUpdate ) {
62
+ if (value && this .$_pendingVScrollUpdate === this . id ) {
63
63
this .updateSize ()
64
64
}
65
65
},
@@ -68,7 +68,7 @@ export default {
68
68
created () {
69
69
if (this .$isServer ) return
70
70
71
- this .$_forceNextVScrollUpdate = false
71
+ this .$_forceNextVScrollUpdate = null
72
72
this .updateWatchData ()
73
73
74
74
for (const k in this .sizeDependencies ) {
@@ -93,16 +93,16 @@ export default {
93
93
methods: {
94
94
updateSize () {
95
95
if (this .active && this .vscrollData .active ) {
96
- if (! this .$_pendingSizeUpdate ) {
97
- this .$_pendingSizeUpdate = true
98
- this .$_forceNextVScrollUpdate = false
99
- this .$_pendingVScrollUpdate = false
96
+ if (this .$_pendingSizeUpdate !== this . id ) {
97
+ this .$_pendingSizeUpdate = this . id
98
+ this .$_forceNextVScrollUpdate = null
99
+ this .$_pendingVScrollUpdate = null
100
100
if (this .active && this .vscrollData .active ) {
101
101
this .computeSize (this .id )
102
102
}
103
103
}
104
104
} else {
105
- this .$_forceNextVScrollUpdate = true
105
+ this .$_forceNextVScrollUpdate = this . id
106
106
}
107
107
},
108
108
@@ -125,9 +125,9 @@ export default {
125
125
126
126
onVscrollUpdate ({ force }) {
127
127
if (! this .active && force) {
128
- this .$_pendingVScrollUpdate = true
128
+ this .$_pendingVScrollUpdate = this . id
129
129
}
130
- if (this .$_forceNextVScrollUpdate || force || ! this .height ) {
130
+ if (this .$_forceNextVScrollUpdate === this . id || force || ! this .height ) {
131
131
this .updateSize ()
132
132
}
133
133
},
@@ -149,7 +149,7 @@ export default {
149
149
if (this .emitResize ) this .$emit (' resize' , this .id )
150
150
}
151
151
}
152
- this .$_pendingSizeUpdate = false
152
+ this .$_pendingSizeUpdate = null
153
153
})
154
154
},
155
155
},
0 commit comments