mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Binded mouse wheel to panning
This commit is contained in:
parent
cde3528737
commit
12561b7a87
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user