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:
leo
2025-08-18 11:53:58 +08:00
parent 39090791de
commit 5c33198fc7

View File

@@ -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;
}