From 9f92e1cb715c50e1f2b46bd20443d7560655ea10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dailer-=E5=88=98=E8=8D=A3=E6=AD=86?= Date: Thu, 18 May 2023 17:19:25 +0800 Subject: [PATCH] =?UTF-8?q?BI-126486=20fix:=20=E5=88=86=E7=BB=84=E8=A1=A8?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=8B=96=E4=B8=8D=E5=8A=A8=E3=80=90?= =?UTF-8?q?=E6=A0=B7=E6=9D=BF=E5=AE=A2=E6=88=B7=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/collection/collection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/collection/collection.js b/src/base/collection/collection.js index a47a78ec3..cf561ab45 100644 --- a/src/base/collection/collection.js +++ b/src/base/collection/collection.js @@ -345,7 +345,7 @@ BI.CollectionView = BI.inherit(BI.Widget, { return; } this._scrollLock = true; - this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft()); + this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft() || scrollLeft); this._debounceRelease(); this.element.scrollLeft(this.options.scrollLeft); this._calculateChildrenToRender(); @@ -356,7 +356,7 @@ BI.CollectionView = BI.inherit(BI.Widget, { return; } this._scrollLock = true; - this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop()); + this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop() || scrollTop); this._debounceRelease(); this.element.scrollTop(this.options.scrollTop); this._calculateChildrenToRender();