Skip to content

Commit 5c33198

Browse files
committed
enhance: remove unnecessary code for moving window on macOS
This has been fix in`AvaloniaUI`. See AvaloniaUI/Avalonia#19447 Signed-off-by: leo <longshuang@msn.cn>
1 parent 3909079 commit 5c33198

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Views/ChromelessWindow.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ public ChromelessWindow()
3030
public void BeginMoveWindow(object _, PointerPressedEventArgs e)
3131
{
3232
if (e.ClickCount == 1)
33-
{
34-
if (OperatingSystem.IsMacOS())
35-
e.Pointer.Capture(this);
36-
3733
BeginMoveDrag(e);
38-
}
3934

4035
e.Handled = true;
4136
}

0 commit comments

Comments
 (0)