@ts-core/angular 15.0.55 → 15.0.56
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.
- package/directive/AutoScrollBottomDirective.d.ts +2 -1
- package/esm2020/directive/AutoScrollBottomDirective.mjs +10 -7
- package/fesm2015/ts-core-angular.mjs +9 -6
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +9 -6
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1635,7 +1635,7 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
// --------------------------------------------------------------------------
|
|
1637
1637
|
//
|
|
1638
|
-
//
|
|
1638
|
+
// Protected Methods
|
|
1639
1639
|
//
|
|
1640
1640
|
// --------------------------------------------------------------------------
|
|
1641
1641
|
initialize() {
|
|
@@ -1648,9 +1648,6 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1648
1648
|
this.isNeedRemainScroll = false;
|
|
1649
1649
|
this.scrollTo(this.scrollHeight - this.lastScrollHeight);
|
|
1650
1650
|
}
|
|
1651
|
-
scrollBottom() {
|
|
1652
|
-
this.scrollTo(this.scrollHeight);
|
|
1653
|
-
}
|
|
1654
1651
|
// --------------------------------------------------------------------------
|
|
1655
1652
|
//
|
|
1656
1653
|
// Event Handlers
|
|
@@ -1674,6 +1671,13 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1674
1671
|
// Public Methods
|
|
1675
1672
|
//
|
|
1676
1673
|
// --------------------------------------------------------------------------
|
|
1674
|
+
scrollCheck() {
|
|
1675
|
+
clearTimeout(this.triggerTimer);
|
|
1676
|
+
this.triggerTimer = setTimeout(this.checkTrigger, InfiniteScrollDirective.INITIALIZATION_DELAY);
|
|
1677
|
+
}
|
|
1678
|
+
scrollBottom() {
|
|
1679
|
+
this.scrollTo(this.scrollHeight);
|
|
1680
|
+
}
|
|
1677
1681
|
destroy() {
|
|
1678
1682
|
if (this.isDestroyed) {
|
|
1679
1683
|
return;
|
|
@@ -1700,8 +1704,7 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1700
1704
|
return;
|
|
1701
1705
|
}
|
|
1702
1706
|
this.isScrollLocked = true;
|
|
1703
|
-
|
|
1704
|
-
this.triggerTimer = setTimeout(this.checkTrigger, InfiniteScrollDirective.INITIALIZATION_DELAY);
|
|
1707
|
+
this.scrollCheck();
|
|
1705
1708
|
}
|
|
1706
1709
|
}
|
|
1707
1710
|
AutoScrollBottomDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AutoScrollBottomDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|