feat: simplify drag code.

This commit is contained in:
rabbitism
2024-01-12 00:39:10 +08:00
parent 2c9a4700a5
commit 743c9a9925

View File

@@ -189,9 +189,6 @@ public class MessageBoxWindow : Window
protected override void OnPointerPressed(PointerPressedEventArgs e) protected override void OnPointerPressed(PointerPressedEventArgs e)
{ {
if (TopLevel.GetTopLevel(this) is Window toplevel) BeginMoveDrag(e);
{
toplevel.BeginMoveDrag(e);
}
} }
} }