|
|
@ -400,12 +400,13 @@ export class CollectionView extends Widget { |
|
|
|
} catch (e) {} |
|
|
|
} catch (e) {} |
|
|
|
this._calculateChildrenToRender(); |
|
|
|
this._calculateChildrenToRender(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setScrollLeft(scrollLeft) { |
|
|
|
setScrollLeft(scrollLeft) { |
|
|
|
if (this.options.scrollLeft === scrollLeft) { |
|
|
|
if (this.options.scrollLeft === scrollLeft) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this._scrollLock = true; |
|
|
|
this._scrollLock = true; |
|
|
|
this.options.scrollLeft = clamp(scrollLeft || 0, 0, this._getMaxScrollLeft()); |
|
|
|
this.options.scrollLeft = clamp(scrollLeft || 0, 0, this._getMaxScrollLeft() || scrollLeft); |
|
|
|
this._debounceRelease(); |
|
|
|
this._debounceRelease(); |
|
|
|
this.element.scrollLeft(this.options.scrollLeft); |
|
|
|
this.element.scrollLeft(this.options.scrollLeft); |
|
|
|
this._calculateChildrenToRender(); |
|
|
|
this._calculateChildrenToRender(); |
|
|
@ -416,7 +417,7 @@ export class CollectionView extends Widget { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this._scrollLock = true; |
|
|
|
this._scrollLock = true; |
|
|
|
this.options.scrollTop = clamp(scrollTop || 0, 0, this._getMaxScrollTop()); |
|
|
|
this.options.scrollTop = clamp(scrollTop || 0, 0, this._getMaxScrollTop() || scrollTop); |
|
|
|
this._debounceRelease(); |
|
|
|
this._debounceRelease(); |
|
|
|
this.element.scrollTop(this.options.scrollTop); |
|
|
|
this.element.scrollTop(this.options.scrollTop); |
|
|
|
this._calculateChildrenToRender(); |
|
|
|
this._calculateChildrenToRender(); |
|
|
|