Browse Source

Fixed dragging graph view with middle mouse

Krzysztof Krysiński 5 tháng trước cách đây
mục cha
commit
6627bedcda
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/PixiEditor/Views/Nodes/NodeGraphView.cs

+ 1 - 0
src/PixiEditor/Views/Nodes/NodeGraphView.cs

@@ -382,6 +382,7 @@ internal class NodeGraphView : Zoombox.Zoombox
         }
         else
         {
+            ZoomMode = e.GetMouseButton(this) == MouseButton.Middle ? ZoomboxMode.Move : ZoomboxMode.Normal;
             isSelecting = false;
             selectionRectangle.IsVisible = false;
         }