Skip to content

Commit 80c4f9f

Browse files
authored
Merge pull request #8107 from IgniteUI/mevtimov/fix-8101-10.1.x
fix(igxGrid): zoom in/out with ctrl + mouse scroll when the mouse lies over the igxGrid body 10.1.x
2 parents ee61d12 + cba6de5 commit 80c4f9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/igniteui-angular/src/lib/directives/scroll-inertia/scroll_inertia.directive.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export class IgxScrollInertiaDirective implements OnInit, OnDestroy {
9797
if (!this.IgxScrollInertiaScrollContainer) {
9898
return;
9999
}
100+
// if ctrl key is pressed and the user want to zoom in/out the page
101+
if (evt.ctrlKey) {
102+
return;
103+
}
100104
let scrollDeltaX;
101105
let scrollDeltaY;
102106
const scrollStep = this.wheelStep;

0 commit comments

Comments
 (0)