diff --git a/packages/virtual-core/src/index.ts b/packages/virtual-core/src/index.ts index 6892ed51..2b3d4ff1 100644 --- a/packages/virtual-core/src/index.ts +++ b/packages/virtual-core/src/index.ts @@ -1003,7 +1003,10 @@ export class Virtualizer< ) } - return end - this.options.scrollMargin + this.options.paddingEnd + return Math.max( + end - this.options.scrollMargin + this.options.paddingEnd, + 0, + ) } private _scrollToOffset = (