Skip to content

Commit

Permalink
Merge pull request #167 from krofinzki/master
Browse files Browse the repository at this point in the history
Update main.js
  • Loading branch information
ivictbor authored Feb 28, 2022
2 parents 76906c4 + 38365df commit 2e13c35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -954,9 +954,9 @@ class PainterroProc {
});

if (fingersDist > this.lastFingerDist) {
this.documentHandlers.mousewheel(e, 1, true);
this.documentHandlers.wheel(e, 1, true);
} else if (fingersDist < this.lastFingerDist) {
this.documentHandlers.mousewheel(e, 1, true);
this.documentHandlers.wheel(e, 1, true);
}
this.lastFingerDist = fingersDist;
e.stopPropagation();
Expand Down Expand Up @@ -986,7 +986,7 @@ class PainterroProc {
this.colorPicker.handleMouseUp(e);
}
},
mousewheel: (e, forceWheenDelta, forceCtrlKey) => {
wheel: (e, forceWheenDelta, forceCtrlKey) => {
if (this.shown) {
if (forceCtrlKey !== undefined ? forceCtrlKey : e.ctrlKey) {
this.zoomImage(e, forceWheenDelta);
Expand Down

0 comments on commit 2e13c35

Please sign in to comment.