mirror of
https://github.com/Siccity/xNode.git
synced 2026-02-06 23:34:54 +08:00
Allow dragging view with middle mouse button
This commit is contained in:
parent
08582d9536
commit
f7637abcc3
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user