diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index dbada4b..3a70848 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -53,7 +53,7 @@ namespace XNodeEditor { } Repaint(); } - } else if (e.button == 1) { + } else if (e.button == 1 || e.button == 2) { panOffset += e.delta * zoom; isPanning = true; }