mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
fix(Launcher): using MouseMove instead of PreviewMouseMove event
This commit is contained in:
parent
a4d1617c5a
commit
4bb20616db
2 changed files with 3 additions and 2 deletions
|
@ -114,7 +114,7 @@
|
|||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
<EventSetter Event="PreviewMouseMove" Handler="TabsPreviewMouseMove"/>
|
||||
<EventSetter Event="MouseMove" Handler="TabsMouseMove"/>
|
||||
<EventSetter Event="Drop" Handler="TabsDrop"/>
|
||||
</Style>
|
||||
</TabControl.ItemContainerStyle>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue