File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ export default {
230
230
const scrollTop = ~~ (scroll .top / poolSize) * poolSize - buffer
231
231
const scrollBottom = Math .ceil (scroll .bottom / poolSize) * poolSize + buffer
232
232
233
- if (! force && scrollTop === this ._oldScrollTop && scrollBottom === this ._oldScrollBottom ) {
233
+ if (! force && ((scrollTop === this ._oldScrollTop && scrollBottom === this ._oldScrollBottom ) || this ._skip )) {
234
+ this ._skip = false
234
235
return
235
236
} else {
236
237
this ._oldScrollTop = scrollTop
@@ -375,14 +376,18 @@ export default {
375
376
this ._startIndex = 0
376
377
this ._oldScrollTop = null
377
378
this ._oldScrollBottom = null
379
+ this ._offsetTop = 0
380
+ this ._height = 0
378
381
const prerender = parseInt (this .prerender )
379
382
if (prerender > 0 ) {
380
383
this .visibleItems = this .items .slice (0 , prerender)
381
384
this ._length = this .visibleItems .length
382
385
this ._endIndex = this ._length - 1
386
+ this ._skip = true
383
387
} else {
384
388
this ._endIndex = 0
385
389
this ._length = 0
390
+ this ._skip = false
386
391
}
387
392
},
388
393
You can’t perform that action at this time.
0 commit comments