feat: fix double tap followed by dragging.

This commit is contained in:
rabbitism
2024-06-28 12:00:07 +08:00
parent c6231c5675
commit 2c965dadb9
2 changed files with 20 additions and 2 deletions

View File

@@ -51,7 +51,10 @@ public class TitleBar: ContentControl
{
if (e.GetCurrentPoint(this).Properties.IsLeftButtonPressed)
{
_visualRoot?.BeginMoveDrag(e);
if (e.ClickCount < 2)
{
_visualRoot?.BeginMoveDrag(e);
}
}
}