Binded mouse wheel to panning

This commit is contained in:
unsettledgames 2021-06-25 22:42:00 +02:00
parent cde3528737
commit 12561b7a87

View File

@ -38,6 +38,9 @@ window.addEventListener("mousedown", function (mouseEvent) {
draw(mouseEvent); draw(mouseEvent);
} }
} }
else if (mouseEvent.which == 2) {
currentTool = tool.pan;
}
else if (currentTool.name == 'pencil' && mouseEvent.which == 3) { else if (currentTool.name == 'pencil' && mouseEvent.which == 3) {
currentTool = tool.resizebrush; currentTool = tool.resizebrush;
tool.pencil.previousBrushSize = tool.pencil.brushSize; tool.pencil.previousBrushSize = tool.pencil.brushSize;