mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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)
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue