mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -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.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
<EventSetter Event="PreviewMouseMove" Handler="TabsPreviewMouseMove"/>
|
<EventSetter Event="MouseMove" Handler="TabsMouseMove"/>
|
||||||
<EventSetter Event="Drop" Handler="TabsDrop"/>
|
<EventSetter Event="Drop" Handler="TabsDrop"/>
|
||||||
</Style>
|
</Style>
|
||||||
</TabControl.ItemContainerStyle>
|
</TabControl.ItemContainerStyle>
|
||||||
|
|
|
@ -180,12 +180,13 @@ namespace SourceGit.UI {
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region DRAG_DROP
|
#region DRAG_DROP
|
||||||
private void TabsPreviewMouseMove(object sender, MouseEventArgs e) {
|
private void TabsMouseMove(object sender, MouseEventArgs e) {
|
||||||
var tab = e.Source as TabItem;
|
var tab = e.Source as TabItem;
|
||||||
if (tab == null || (tab.DataContext as Tab).Repo == null) return;
|
if (tab == null || (tab.DataContext as Tab).Repo == null) return;
|
||||||
|
|
||||||
if (Mouse.LeftButton == MouseButtonState.Pressed) {
|
if (Mouse.LeftButton == MouseButtonState.Pressed) {
|
||||||
DragDrop.DoDragDrop(tab, tab, DragDropEffects.All);
|
DragDrop.DoDragDrop(tab, tab, DragDropEffects.All);
|
||||||
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue