igniteui-angular 22.1.0 → 22.1.1
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.
|
@@ -3445,35 +3445,12 @@ class IgxGridBaseDirective {
|
|
|
3445
3445
|
* @hidden @internal
|
|
3446
3446
|
*/
|
|
3447
3447
|
this.isHorizontalScrollHidden = false;
|
|
3448
|
-
/**
|
|
3449
|
-
* @hidden @internal
|
|
3450
|
-
*/
|
|
3451
|
-
this.preventContainerScroll = (evt) => {
|
|
3452
|
-
const target = evt.target;
|
|
3453
|
-
if (target.scrollTop !== 0) {
|
|
3454
|
-
this.verticalScrollContainer.addScroll(target.scrollTop);
|
|
3455
|
-
target.scrollTop = 0;
|
|
3456
|
-
}
|
|
3457
|
-
if (target.scrollLeft !== 0) {
|
|
3458
|
-
this.headerContainer.scrollPosition += target.scrollLeft;
|
|
3459
|
-
target.scrollLeft = 0;
|
|
3460
|
-
}
|
|
3461
|
-
};
|
|
3462
|
-
/**
|
|
3463
|
-
* @hidden
|
|
3464
|
-
*/
|
|
3465
|
-
this.rowEditingWheelHandler = (event) => {
|
|
3466
|
-
if (event.deltaY > 0) {
|
|
3467
|
-
this.verticalScrollContainer.scrollNext();
|
|
3468
|
-
}
|
|
3469
|
-
else {
|
|
3470
|
-
this.verticalScrollContainer.scrollPrev();
|
|
3471
|
-
}
|
|
3472
|
-
};
|
|
3473
3448
|
inject(IgxStylesRegistrar).register(GRID_STYLES_ID, GRID_BASE_CSS);
|
|
3474
3449
|
this.initLocale();
|
|
3475
3450
|
this._transactions = this.transactionFactory.create("None" /* TRANSACTION_TYPE.None */);
|
|
3476
3451
|
this._transactions.cloneStrategy = this.dataCloneStrategy;
|
|
3452
|
+
this.preventContainerScroll = this.preventContainerScroll.bind(this);
|
|
3453
|
+
this.rowEditingWheelHandler = this.rowEditingWheelHandler.bind(this);
|
|
3477
3454
|
this.cdr.detach();
|
|
3478
3455
|
IgcTrialWatermark.register();
|
|
3479
3456
|
}
|
|
@@ -5762,6 +5739,20 @@ class IgxGridBaseDirective {
|
|
|
5762
5739
|
const source = this.filteredSortedData;
|
|
5763
5740
|
return this.extractDataFromSelection(source, formatters, headers, columnData);
|
|
5764
5741
|
}
|
|
5742
|
+
/**
|
|
5743
|
+
* @hidden @internal
|
|
5744
|
+
*/
|
|
5745
|
+
preventContainerScroll(evt) {
|
|
5746
|
+
const target = evt.target;
|
|
5747
|
+
if (target.scrollTop !== 0) {
|
|
5748
|
+
this.verticalScrollContainer.addScroll(target.scrollTop);
|
|
5749
|
+
target.scrollTop = 0;
|
|
5750
|
+
}
|
|
5751
|
+
if (target.scrollLeft !== 0) {
|
|
5752
|
+
this.headerContainer.scrollPosition += target.scrollLeft;
|
|
5753
|
+
target.scrollLeft = 0;
|
|
5754
|
+
}
|
|
5755
|
+
}
|
|
5765
5756
|
/**
|
|
5766
5757
|
* @hidden
|
|
5767
5758
|
* @internal
|
|
@@ -6117,6 +6108,17 @@ class IgxGridBaseDirective {
|
|
|
6117
6108
|
this.pipeTrigger++;
|
|
6118
6109
|
this.cdr.detectChanges();
|
|
6119
6110
|
}
|
|
6111
|
+
/**
|
|
6112
|
+
* @hidden
|
|
6113
|
+
*/
|
|
6114
|
+
rowEditingWheelHandler(event) {
|
|
6115
|
+
if (event.deltaY > 0) {
|
|
6116
|
+
this.verticalScrollContainer.scrollNext();
|
|
6117
|
+
}
|
|
6118
|
+
else {
|
|
6119
|
+
this.verticalScrollContainer.scrollPrev();
|
|
6120
|
+
}
|
|
6121
|
+
}
|
|
6120
6122
|
/**
|
|
6121
6123
|
* @hidden
|
|
6122
6124
|
*/
|