From 12561b7a877eecc883411564ddf424fe51a2ccd5 Mon Sep 17 00:00:00 2001 From: unsettledgames <47360416+unsettledgames@users.noreply.github.com> Date: Fri, 25 Jun 2021 22:42:00 +0200 Subject: [PATCH] Binded mouse wheel to panning --- js/_mouseEvents.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/_mouseEvents.js b/js/_mouseEvents.js index 307720f..79ea4bf 100644 --- a/js/_mouseEvents.js +++ b/js/_mouseEvents.js @@ -38,6 +38,9 @@ window.addEventListener("mousedown", function (mouseEvent) { draw(mouseEvent); } } + else if (mouseEvent.which == 2) { + currentTool = tool.pan; + } else if (currentTool.name == 'pencil' && mouseEvent.which == 3) { currentTool = tool.resizebrush; tool.pencil.previousBrushSize = tool.pencil.brushSize;