From f240e54bb320fae0bcef40edb40ccf7a1c742a26 Mon Sep 17 00:00:00 2001 From: Jascha Bakarinow Date: Sat, 17 Jul 2021 23:07:57 +0200 Subject: [PATCH] Set brushSize before panning with Mousewheel --- js/_mouseEvents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/_mouseEvents.js b/js/_mouseEvents.js index fce955c..c4b4969 100644 --- a/js/_mouseEvents.js +++ b/js/_mouseEvents.js @@ -37,8 +37,8 @@ window.addEventListener("mousedown", function (mouseEvent) { } } else if (mouseEvent.which == 2) { + tool.pan.brushSize = currentTool.brushSize; currentTool = tool.pan; - tool.pan.brushSize = currentToolTemp.brushSize; } else if (currentTool.name == 'pencil' && mouseEvent.which == 3) { currentTool = tool.resizebrush;