Skip to content

Commit 09d0870

Browse files
committed
fix(igxOverlay): remove wheel listener, #6226
1 parent b1fe8bc commit 09d0870

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

projects/igniteui-angular/src/lib/services/overlay/scroll/block-scroll-strategy.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ export class BlockScrollStrategy extends ScrollStrategy {
2828
/** @inheritdoc */
2929
public attach(): void {
3030
this._document.addEventListener('scroll', this.onScroll, true);
31-
this._document.addEventListener('wheel', this.onWheel, true);
3231
}
3332

3433
/** @inheritdoc */
3534
public detach(): void {
3635
this._document.removeEventListener('scroll', this.onScroll, true);
37-
this._document.removeEventListener('wheel', this.onWheel, true);
3836
this._sourceElement = null;
3937
this._initialScrollTop = 0;
4038
this._initialScrollLeft = 0;
@@ -52,9 +50,4 @@ export class BlockScrollStrategy extends ScrollStrategy {
5250
this._sourceElement.scrollTop = this._initialScrollTop;
5351
this._sourceElement.scrollLeft = this._initialScrollLeft;
5452
}
55-
56-
private onWheel(ev: WheelEvent) {
57-
ev.stopImmediatePropagation();
58-
ev.preventDefault();
59-
}
6053
}

0 commit comments

Comments
 (0)