diff --git a/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml b/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml index bbb745098..90bfd9fe0 100644 --- a/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml +++ b/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml @@ -326,14 +326,12 @@ - + + HorizontalAlignment="Center"> diff --git a/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs b/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs index ea0257967..5e639eff6 100644 --- a/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs +++ b/CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs @@ -409,6 +409,7 @@ private async void HideImageEventImg(bool hide) #region Open Link from Tag private void OpenImageLinkFromTag(object sender, PointerRoutedEventArgs e) { + if (!e.GetCurrentPoint((UIElement) sender).Properties.IsLeftButtonPressed) return; SpawnWebView2.SpawnWebView2Window(((ImageEx.ImageEx)sender).Tag.ToString()); } @@ -465,6 +466,7 @@ private void OpenLinkFromButtonWithTag(object sender, RoutedEventArgs e) private void ClickImageEventSpriteLink(object sender, PointerRoutedEventArgs e) { + if (!e.GetCurrentPoint((UIElement)sender).Properties.IsLeftButtonPressed) return; object ImageTag = ((Image)sender).Tag; if (ImageTag == null) return; SpawnWebView2.SpawnWebView2Window((string)ImageTag);