Browse Source

Only zoom in/out with LMB

Equbuxu 4 năm trước cách đây
mục cha
commit
fe4df3c6fb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      PixiEditor/Views/UserControls/ZoomBox.xaml.cs

+ 1 - 1
PixiEditor/Views/UserControls/ZoomBox.xaml.cs

@@ -245,7 +245,7 @@ namespace PixiEditor.Views.UserControls
             }
             else
             {
-                if (ZoomMode == Mode.ZoomTool)
+                if (ZoomMode == Mode.ZoomTool && e.ChangedButton == MouseButton.Left)
                     ZoomInto(e.GetPosition(mainCanvas), Keyboard.IsKeyDown(Key.LeftAlt) ? -1 : 1);
             }
             activeMouseDownEventArgs = null;