mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-22 13:51:15 +08:00
enhance: remove unnecessary code for moving window on macOS
This has been fix in`AvaloniaUI`. See https://github.com/AvaloniaUI/Avalonia/pull/19447 Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -30,12 +30,7 @@ namespace SourceGit.Views
|
||||
public void BeginMoveWindow(object _, PointerPressedEventArgs e)
|
||||
{
|
||||
if (e.ClickCount == 1)
|
||||
{
|
||||
if (OperatingSystem.IsMacOS())
|
||||
e.Pointer.Capture(this);
|
||||
|
||||
BeginMoveDrag(e);
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user