mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Set brushSize before panning with Mousewheel
This commit is contained in:
parent
d4de08e8be
commit
f240e54bb3
@ -37,8 +37,8 @@ window.addEventListener("mousedown", function (mouseEvent) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mouseEvent.which == 2) {
|
else if (mouseEvent.which == 2) {
|
||||||
|
tool.pan.brushSize = currentTool.brushSize;
|
||||||
currentTool = tool.pan;
|
currentTool = tool.pan;
|
||||||
tool.pan.brushSize = currentToolTemp.brushSize;
|
|
||||||
}
|
}
|
||||||
else if (currentTool.name == 'pencil' && mouseEvent.which == 3) {
|
else if (currentTool.name == 'pencil' && mouseEvent.which == 3) {
|
||||||
currentTool = tool.resizebrush;
|
currentTool = tool.resizebrush;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user