瀏覽代碼

Only zoom in/out with LMB

Equbuxu 4 年之前
父節點
當前提交
fe4df3c6fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;