ソースを参照

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;