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 0f2e362 commit dd47289Copy full SHA for dd47289
packages/vue-virtual-scroller/src/components/RecycleScroller.vue
@@ -636,7 +636,9 @@ export default {
636
const boundsSize = isVertical ? bounds.height : bounds.width
637
let start = -(isVertical ? bounds.top : bounds.left)
638
let size = isVertical ? window.innerHeight : window.innerWidth
639
- if (start < 0) {
+ let originStart = isVertical ? bounds.top : bounds.left;
640
+ // Fix start value when the el is scrolling from under the viewport to the middle of the viewport
641
+ if (start < 0 && !(originStart > 0 && originStart < size)) {
642
size += start
643
start = 0
644
}
0 commit comments