Explorar o código

Ignore right click

Equbuxu %!s(int64=4) %!d(string=hai) anos
pai
achega
4f771d218f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      PixiEditor/Views/UserControls/ZoomBox.xaml.cs

+ 4 - 0
PixiEditor/Views/UserControls/ZoomBox.xaml.cs

@@ -187,6 +187,8 @@ namespace PixiEditor.Views.UserControls
 
         private void OnMouseDown(object sender, MouseButtonEventArgs e)
         {
+            if (e.ChangedButton == MouseButton.Right)
+                return;
             activeMouseDownEventArgs = e;
             activeMouseDownPos = e.GetPosition(mainCanvas);
         }
@@ -208,6 +210,8 @@ namespace PixiEditor.Views.UserControls
 
         private void OnMouseUp(object sender, MouseButtonEventArgs e)
         {
+            if (e.ChangedButton == MouseButton.Right)
+                return;
             if (activeDragOperation != null)
             {
                 activeDragOperation?.Terminate();