1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 01:06:01 +08:00

Panning was kept active if you used the middle button(button2) for panning.

This commit is contained in:
Simon Rodriguez 2018-06-20 11:15:28 +02:00
parent 51bb98b4d1
commit efa44d2637

View File

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