Ver código fonte

FIx gallery close button event not firing

Ruben 5 anos atrás
pai
commit
899d097c88
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      PicView/UI/PicGallery/GalleryLoad.cs

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

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