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

FIx gallery close button event not firing

Ruben 5 жил өмнө
parent
commit
899d097c88

+ 1 - 1
PicView/UI/PicGallery/GalleryLoad.cs

@@ -17,7 +17,7 @@ namespace PicView.UI.PicGallery
             picGallery.Scroller.PreviewMouseWheel += ScrollTo;
             picGallery.Scroller.PreviewMouseWheel += ScrollTo;
             picGallery.Scroller.ScrollChanged += (s, x) => mainWindow.Focus(); // Maintain window focus when scrolling manually
             picGallery.Scroller.ScrollChanged += (s, x) => mainWindow.Focus(); // Maintain window focus when scrolling manually
             picGallery.grid.MouseLeftButtonDown += (s, x) => mainWindow.Focus();
             picGallery.grid.MouseLeftButtonDown += (s, x) => mainWindow.Focus();
-            picGallery.x2.MouseLeftButtonUp += delegate { GalleryToggle.CloseContainedGallery(); };
+            picGallery.x2.MouseLeftButtonDown += delegate { GalleryToggle.CloseContainedGallery(); };
         }
         }
 
 
         internal static void LoadLayout()
         internal static void LoadLayout()