@ts-core/angular 15.0.57 → 15.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1448,7 +1448,7 @@ class ScrollDirective extends Destroyable {
1448
1448
  //
1449
1449
  // --------------------------------------------------------------------------
1450
1450
  initialize() {
1451
- if (this.scrollValue) {
1451
+ if (!_.isNil(this.scrollValue)) {
1452
1452
  this.scrollTo(this.scrollValue);
1453
1453
  }
1454
1454
  this.isInitialized = true;
@@ -1456,7 +1456,6 @@ class ScrollDirective extends Destroyable {
1456
1456
  scrollTo(value, behavior) {
1457
1457
  this._scrollValue = value;
1458
1458
  this.element.scroll({ top: value, behavior });
1459
- // this.element.scrollTop = value;
1460
1459
  }
1461
1460
  // --------------------------------------------------------------------------
1462
1461
  //
@@ -1641,7 +1640,7 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
1641
1640
  //
1642
1641
  // --------------------------------------------------------------------------
1643
1642
  initialize() {
1644
- if (this._scrollValue) {
1643
+ if (!_.isNil(this.scrollHeight)) {
1645
1644
  this._scrollValue = this.scrollHeight;
1646
1645
  }
1647
1646
  super.initialize();