mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Merge pull request #46 from nostek/bugfix/middlemousepan
Panning was kept active if you used middle mouse button
This commit is contained in:
commit
b7cca911cc
@ -231,7 +231,7 @@ namespace XNodeEditor {
|
||||
|
||||
Repaint();
|
||||
currentActivity = NodeActivity.Idle;
|
||||
} else if (e.button == 1) {
|
||||
} else if (e.button == 1 || e.button == 2) {
|
||||
if (!isPanning) {
|
||||
if (IsDraggingPort) {
|
||||
draggedOutputReroutes.Add(WindowToGridPosition(e.mousePosition));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user