Set brushSize before panning with Mousewheel

This commit is contained in:
Jascha Bakarinow 2021-07-17 23:07:57 +02:00
parent d4de08e8be
commit f240e54bb3

View File

@ -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;