Skip to content

Commit 2e13c35

Browse files
authored
Merge pull request #167 from krofinzki/master
Update main.js
2 parents 76906c4 + 38365df commit 2e13c35

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

js/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,9 +954,9 @@ class PainterroProc {
954954
});
955955

956956
if (fingersDist > this.lastFingerDist) {
957-
this.documentHandlers.mousewheel(e, 1, true);
957+
this.documentHandlers.wheel(e, 1, true);
958958
} else if (fingersDist < this.lastFingerDist) {
959-
this.documentHandlers.mousewheel(e, 1, true);
959+
this.documentHandlers.wheel(e, 1, true);
960960
}
961961
this.lastFingerDist = fingersDist;
962962
e.stopPropagation();
@@ -986,7 +986,7 @@ class PainterroProc {
986986
this.colorPicker.handleMouseUp(e);
987987
}
988988
},
989-
mousewheel: (e, forceWheenDelta, forceCtrlKey) => {
989+
wheel: (e, forceWheenDelta, forceCtrlKey) => {
990990
if (this.shown) {
991991
if (forceCtrlKey !== undefined ? forceCtrlKey : e.ctrlKey) {
992992
this.zoomImage(e, forceWheenDelta);

0 commit comments

Comments
 (0)