Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit d7b6984

Browse files
author
Meaghan Lewis
authored
Merge pull request #2366 from github/border-right-click-crash
Preventing the right mouse from dragging a dialog window
2 parents 636b376 + f65178c commit d7b6984

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GitHub.VisualStudio.UI/Views/Dialog/GitHubDialogWindow.xaml.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ void CloseButton_Click(object sender, RoutedEventArgs e)
2525

2626
void Border_MouseDown(object sender, MouseButtonEventArgs e)
2727
{
28-
DragMove();
28+
if (e.ChangedButton == MouseButton.Left)
29+
{
30+
DragMove();
31+
}
2932
}
3033
}
3134
}

0 commit comments

Comments
 (0)