mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: forbid MoveWindow
being called while double tap action taking place (#177)
This commit is contained in:
parent
762ec1f702
commit
13cc494a48
4 changed files with 8 additions and 0 deletions
|
@ -333,6 +333,8 @@ namespace SourceGit.Views
|
|||
|
||||
private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e)
|
||||
{
|
||||
_pressedTitleBar = false;
|
||||
|
||||
if (WindowState == WindowState.Maximized)
|
||||
WindowState = WindowState.Normal;
|
||||
else
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace SourceGit.Views
|
|||
|
||||
private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e)
|
||||
{
|
||||
_pressedTitleBar = false;
|
||||
|
||||
if (WindowState == WindowState.Maximized)
|
||||
WindowState = WindowState.Normal;
|
||||
else
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace SourceGit.Views
|
|||
|
||||
private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e)
|
||||
{
|
||||
_pressedTitleBar = false;
|
||||
|
||||
if (WindowState == WindowState.Maximized)
|
||||
WindowState = WindowState.Normal;
|
||||
else
|
||||
|
|
|
@ -161,6 +161,8 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnTitleBarDoubleTapped(object sender, TappedEventArgs e)
|
||||
{
|
||||
_pressedTitleBar = false;
|
||||
|
||||
if (WindowState == WindowState.Maximized)
|
||||
WindowState = WindowState.Normal;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue