[DE PE SSE] Fix bug 56029

This commit is contained in:
JuliaSvinareva 2022-05-19 17:12:28 +03:00
parent 42a1e0e1ee
commit 8a6b2a003c
3 changed files with 3 additions and 3 deletions

View file

@ -275,7 +275,7 @@ define([
delta = event.deltaY; delta = event.deltaY;
} }
if ((event.ctrlKey || event.metaKey) && !event.altKey) { if (event.ctrlKey && !event.altKey) {
if (delta < 0) { if (delta < 0) {
me.api.zoomOut(); me.api.zoomOut();
} else if (delta > 0) { } else if (delta > 0) {

View file

@ -263,7 +263,7 @@ define([
delta = event.deltaY; delta = event.deltaY;
} }
if ((event.ctrlKey || event.metaKey) && !event.altKey){ if (event.ctrlKey && !event.altKey) {
if (delta < 0) if (delta < 0)
me.api.zoomOut(); me.api.zoomOut();
else if (delta > 0) else if (delta > 0)

View file

@ -1719,7 +1719,7 @@ define([
delta = e.deltaY; delta = e.deltaY;
} }
if ((e.ctrlKey || e.metaKey) && !e.altKey) { if (e.ctrlKey && !e.altKey) {
var factor = this.api.asc_getZoom(); var factor = this.api.asc_getZoom();
if (delta < 0) { if (delta < 0) {
factor = Math.ceil(factor * 10)/10; factor = Math.ceil(factor * 10)/10;