1
0
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:
Thor Brigsted 2018-01-09 01:41:23 +01:00
parent 08582d9536
commit f7637abcc3

View File

@ -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;
}