diff --git a/js/_mouseEvents.js b/js/_mouseEvents.js index 307720f..79ea4bf 100644 --- a/js/_mouseEvents.js +++ b/js/_mouseEvents.js @@ -38,6 +38,9 @@ window.addEventListener("mousedown", function (mouseEvent) { draw(mouseEvent); } } + else if (mouseEvent.which == 2) { + currentTool = tool.pan; + } else if (currentTool.name == 'pencil' && mouseEvent.which == 3) { currentTool = tool.resizebrush; tool.pencil.previousBrushSize = tool.pencil.brushSize;