igniteui-angular 13.0.7 → 13.0.8
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/esm2020/lib/directives/scroll-inertia/scroll_inertia.directive.mjs +33 -1
- package/fesm2015/igniteui-angular.mjs +32 -0
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +32 -0
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/directives/scroll-inertia/scroll_inertia.directive.d.ts +6 -0
- package/package.json +1 -1
|
@@ -9044,6 +9044,9 @@ class IgxScrollInertiaDirective {
|
|
|
9044
9044
|
const deltaScaledY = evt.deltaY * (evt.deltaMode === 0 ? this.firefoxDeltaMultiplier : 1);
|
|
9045
9045
|
scrollDeltaY = this.calcAxisCoords(deltaScaledY, -1, 1);
|
|
9046
9046
|
}
|
|
9047
|
+
if (evt.composedPath && this.didChildScroll(evt, scrollDeltaX, scrollDeltaY)) {
|
|
9048
|
+
return;
|
|
9049
|
+
}
|
|
9047
9050
|
if (scrollDeltaX && this.IgxScrollInertiaDirection === 'horizontal') {
|
|
9048
9051
|
const nextLeft = this._startX + scrollDeltaX * scrollStep;
|
|
9049
9052
|
if (!smoothing) {
|
|
@@ -9095,6 +9098,35 @@ class IgxScrollInertiaDirective {
|
|
|
9095
9098
|
}
|
|
9096
9099
|
}
|
|
9097
9100
|
}
|
|
9101
|
+
/**
|
|
9102
|
+
* @hidden
|
|
9103
|
+
* Checks if the wheel event would have scrolled an element under the display container
|
|
9104
|
+
* in DOM tree so that it can correctly be ignored until that element can no longer be scrolled.
|
|
9105
|
+
*/
|
|
9106
|
+
didChildScroll(evt, scrollDeltaX, scrollDeltaY) {
|
|
9107
|
+
const path = evt.composedPath();
|
|
9108
|
+
let i = 0;
|
|
9109
|
+
while (i < path.length && path[i].localName !== 'igx-display-container') {
|
|
9110
|
+
const e = path[i++];
|
|
9111
|
+
if (e.scrollHeight > e.clientHeight) {
|
|
9112
|
+
if (scrollDeltaY > 0 && e.scrollHeight - Math.abs(Math.round(e.scrollTop)) !== e.clientHeight) {
|
|
9113
|
+
return true;
|
|
9114
|
+
}
|
|
9115
|
+
if (scrollDeltaY < 0 && e.scrollTop !== 0) {
|
|
9116
|
+
return true;
|
|
9117
|
+
}
|
|
9118
|
+
}
|
|
9119
|
+
if (e.scrollWidth > e.clientWidth) {
|
|
9120
|
+
if (scrollDeltaX > 0 && e.scrollWidth - Math.abs(Math.round(e.scrollLeft)) !== e.clientWidth) {
|
|
9121
|
+
return true;
|
|
9122
|
+
}
|
|
9123
|
+
if (scrollDeltaX < 0 && e.scrollLeft !== 0) {
|
|
9124
|
+
return true;
|
|
9125
|
+
}
|
|
9126
|
+
}
|
|
9127
|
+
}
|
|
9128
|
+
return false;
|
|
9129
|
+
}
|
|
9098
9130
|
/**
|
|
9099
9131
|
* @hidden
|
|
9100
9132
|
* Function that is called the first moment we start interacting with the content on a touch device
|