1
1
Эх сурвалжийг харах

Update title bar to behave as expected

Ruben 5 жил өмнө
parent
commit
23fe6e63a3

+ 6 - 7
PicView/UI/EditTitleBar.cs

@@ -13,15 +13,14 @@ namespace PicView.UI
 
         internal static void Bar_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
         {
-            if (!mainWindow.Bar.IsFocused)
+            if (mainWindow.Bar.IsFocused)
             {
-                if (e.ClickCount == 2)
-                {
-                    WindowLogic.Maximize_Restore();
-                }
-
-                e.Handled = true;
+                return;
             }
+
+            WindowLogic.Move(sender, e);
+            Refocus();
+            e.Handled = true; // Disable text clicking
         }
 
         internal static void EditTitleBar_Text()