Skip to content

Commit

Permalink
Allow dragging view with middle mouse button
Browse files Browse the repository at this point in the history
  • Loading branch information
Siccity committed Jan 9, 2018
1 parent 08582d9 commit f7637ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Editor/NodeEditorAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f7637ab

Please sign in to comment.