From 4bb20616db3311c5c72464d60a7bbd7a39581e18 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 3 Aug 2020 18:34:53 +0800 Subject: [PATCH] fix(Launcher): using MouseMove instead of PreviewMouseMove event --- SourceGit/UI/Launcher.xaml | 2 +- SourceGit/UI/Launcher.xaml.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SourceGit/UI/Launcher.xaml b/SourceGit/UI/Launcher.xaml index 64600f87..1b7d3216 100644 --- a/SourceGit/UI/Launcher.xaml +++ b/SourceGit/UI/Launcher.xaml @@ -114,7 +114,7 @@ - + diff --git a/SourceGit/UI/Launcher.xaml.cs b/SourceGit/UI/Launcher.xaml.cs index 1431c224..c021870c 100644 --- a/SourceGit/UI/Launcher.xaml.cs +++ b/SourceGit/UI/Launcher.xaml.cs @@ -180,12 +180,13 @@ namespace SourceGit.UI { #endregion #region DRAG_DROP - private void TabsPreviewMouseMove(object sender, MouseEventArgs e) { + private void TabsMouseMove(object sender, MouseEventArgs e) { var tab = e.Source as TabItem; if (tab == null || (tab.DataContext as Tab).Repo == null) return; if (Mouse.LeftButton == MouseButtonState.Pressed) { DragDrop.DoDragDrop(tab, tab, DragDropEffects.All); + e.Handled = true; } }