Skip to content

Commit f7637ab

Browse files
committed
Allow dragging view with middle mouse button
1 parent 08582d9 commit f7637ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Scripts/Editor/NodeEditorAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void Controls() {
5353
}
5454
Repaint();
5555
}
56-
} else if (e.button == 1) {
56+
} else if (e.button == 1 || e.button == 2) {
5757
panOffset += e.delta * zoom;
5858
isPanning = true;
5959
}

0 commit comments

Comments
 (0)