Przeglądaj źródła

Only zoom in/out with LMB

Equbuxu 4 lat temu
rodzic
commit
fe4df3c6fb
1 zmienionych plików z 1 dodań i 1 usunięć
  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;