mirror of
https://github.com/Siccity/xNode.git
synced 2026-02-08 00:04: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();
|
Repaint();
|
||||||
}
|
}
|
||||||
} else if (e.button == 1) {
|
} else if (e.button == 1 || e.button == 2) {
|
||||||
panOffset += e.delta * zoom;
|
panOffset += e.delta * zoom;
|
||||||
isPanning = true;
|
isPanning = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user