From f7637abcc3f7db29781c7bc6d2c90eaee96bfb7d Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Tue, 9 Jan 2018 01:41:23 +0100 Subject: [PATCH] Allow dragging view with middle mouse button --- Scripts/Editor/NodeEditorAction.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index dbada4b0..3a70848d 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -53,7 +53,7 @@ public void Controls() { } Repaint(); } - } else if (e.button == 1) { + } else if (e.button == 1 || e.button == 2) { panOffset += e.delta * zoom; isPanning = true; }