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 4db0d31 commit 8011d8bCopy full SHA for 8011d8b
src/components/VirtualScroller.vue
@@ -227,8 +227,8 @@ export default {
227
228
const buffer = parseInt(this.buffer)
229
const poolSize = parseInt(this.poolSize)
230
- const scrollTop = ~~((scroll.top - buffer) / poolSize) * poolSize
231
- const scrollBottom = ~~(Math.ceil((scroll.bottom + buffer) / poolSize)) * poolSize
+ const scrollTop = ~~(scroll.top / poolSize) * poolSize - buffer
+ const scrollBottom = Math.ceil(scroll.bottom / poolSize) * poolSize + buffer
232
233
if (!force && scrollTop === this._oldScrollTop && scrollBottom === this._oldScrollBottom) {
234
return
0 commit comments