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
No known key found for this signature in database
GPG key ID: B528468E49CD0E58
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) private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e)
{ {
_pressedTitleBar = false;
if (WindowState == WindowState.Maximized) if (WindowState == WindowState.Maximized)
WindowState = WindowState.Normal; WindowState = WindowState.Normal;
else else

View file

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

View file

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

View file

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