enhance: forbid MoveWindow being called while double tap action taking place (#177)

This commit is contained in:
leo
2024-06-13 20:26:24 +08:00
parent 762ec1f702
commit 13cc494a48
4 changed files with 8 additions and 0 deletions

View File

@@ -333,6 +333,8 @@ namespace SourceGit.Views
private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e)
{
_pressedTitleBar = false;
if (WindowState == WindowState.Maximized)
WindowState = WindowState.Normal;
else

View File

@@ -13,6 +13,8 @@ namespace SourceGit.Views
private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e)
{
_pressedTitleBar = false;
if (WindowState == WindowState.Maximized)
WindowState = WindowState.Normal;
else

View File

@@ -13,6 +13,8 @@ namespace SourceGit.Views
private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e)
{
_pressedTitleBar = false;
if (WindowState == WindowState.Maximized)
WindowState = WindowState.Normal;
else

View File

@@ -161,6 +161,8 @@ namespace SourceGit.Views
private void OnTitleBarDoubleTapped(object sender, TappedEventArgs e)
{
_pressedTitleBar = false;
if (WindowState == WindowState.Maximized)
WindowState = WindowState.Normal;
else