@ts-core/angular 13.1.34 → 13.1.35
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/ScrollCheckDirective.d.ts +0 -2
- package/esm2020/directive/ScrollCheckDirective.mjs +5 -17
- package/fesm2015/ts-core-angular.mjs +3 -16
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +3 -16
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2951,8 +2951,6 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
2951
2951
|
this.top = new EventEmitter();
|
|
2952
2952
|
this.bottom = new EventEmitter();
|
|
2953
2953
|
this.limitExceed = new EventEmitter();
|
|
2954
|
-
this.isTop = false;
|
|
2955
|
-
this.isBottom = false;
|
|
2956
2954
|
this.isExceedLimit = false;
|
|
2957
2955
|
this.delay = DateUtil.MILLISECONDS_SECOND / 10;
|
|
2958
2956
|
this.offset = 50;
|
|
@@ -2967,22 +2965,11 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
2967
2965
|
this.isExceedLimit = value;
|
|
2968
2966
|
this.limitExceed.emit(value);
|
|
2969
2967
|
}
|
|
2970
|
-
|
|
2968
|
+
let offset = !_.isNaN(this.offset) ? this.offset : 0;
|
|
2969
|
+
value = this.scrollValue + this.clientHeight + offset >= this.scrollHeight;
|
|
2971
2970
|
this.bottom.next(value);
|
|
2972
|
-
|
|
2973
|
-
if (value !== this.isBottom) {
|
|
2974
|
-
this.isBottom = value;
|
|
2975
|
-
this.bottom.next(value);
|
|
2976
|
-
}
|
|
2977
|
-
*/
|
|
2978
|
-
value = this.scrollValue < this.offset;
|
|
2971
|
+
value = this.scrollValue <= offset;
|
|
2979
2972
|
this.top.next(value);
|
|
2980
|
-
/*
|
|
2981
|
-
if (value !== this.isTop) {
|
|
2982
|
-
this.isTop = value;
|
|
2983
|
-
this.top.next(value);
|
|
2984
|
-
}
|
|
2985
|
-
*/
|
|
2986
2973
|
};
|
|
2987
2974
|
this.delay = DateUtil.MILLISECONDS_SECOND / 10;
|
|
2988
2975
|
this.element = element.nativeElement;
|