Skip to content

Commit e5b9418

Browse files
authored
Merge pull request #8105 from IgniteUI/mevtimov/fix-8101-master
fix(igxGrid): zoom in/out with ctrl + mouse scroll when the mouse lies over the igxGrid body
2 parents e0a4a70 + 4b3cccc commit e5b9418

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)