improve:自动收纳
This commit is contained in:
@@ -63,6 +63,8 @@ namespace Ink_Canvas
|
|||||||
foldFloatingBarByUser = true;
|
foldFloatingBarByUser = true;
|
||||||
unfoldFloatingBarByUser = false;
|
unfoldFloatingBarByUser = false;
|
||||||
|
|
||||||
|
if (isFloatingBarFolded) return;
|
||||||
|
|
||||||
if (isFloatingBarChangingHideMode) return;
|
if (isFloatingBarChangingHideMode) return;
|
||||||
|
|
||||||
await Dispatcher.InvokeAsync(() =>
|
await Dispatcher.InvokeAsync(() =>
|
||||||
|
|||||||
@@ -921,16 +921,22 @@ namespace Ink_Canvas
|
|||||||
await Task.Delay(100);
|
await Task.Delay(100);
|
||||||
await Application.Current.Dispatcher.InvokeAsync(() =>
|
await Application.Current.Dispatcher.InvokeAsync(() =>
|
||||||
{
|
{
|
||||||
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
if (!isFloatingBarFolded)
|
||||||
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
|
||||||
{
|
{
|
||||||
Task.Delay(350).ContinueWith(_ =>
|
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
||||||
|
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
||||||
{
|
{
|
||||||
Application.Current.Dispatcher.Invoke(() =>
|
Task.Delay(350).ContinueWith(_ =>
|
||||||
{
|
{
|
||||||
ViewboxFloatingBarMarginAnimation(-60);
|
Application.Current.Dispatcher.Invoke(() =>
|
||||||
|
{
|
||||||
|
if (!isFloatingBarFolded)
|
||||||
|
{
|
||||||
|
ViewboxFloatingBarMarginAnimation(-60);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1647,11 +1653,17 @@ namespace Ink_Canvas
|
|||||||
SetCurrentToolMode(InkCanvasEditingMode.None);
|
SetCurrentToolMode(InkCanvasEditingMode.None);
|
||||||
|
|
||||||
await Task.Delay(150);
|
await Task.Delay(150);
|
||||||
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
if (!isFloatingBarFolded)
|
||||||
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
{
|
||||||
{
|
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
||||||
await Task.Delay(350);
|
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
||||||
ViewboxFloatingBarMarginAnimation(-60);
|
{
|
||||||
|
await Task.Delay(350);
|
||||||
|
if (!isFloatingBarFolded)
|
||||||
|
{
|
||||||
|
ViewboxFloatingBarMarginAnimation(-60);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -1669,11 +1681,17 @@ namespace Ink_Canvas
|
|||||||
await HandleManualSlideShowEnd();
|
await HandleManualSlideShowEnd();
|
||||||
|
|
||||||
await Task.Delay(150);
|
await Task.Delay(150);
|
||||||
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
if (!isFloatingBarFolded)
|
||||||
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
|
||||||
{
|
{
|
||||||
await Task.Delay(350);
|
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
||||||
ViewboxFloatingBarMarginAnimation(-60);
|
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
||||||
|
{
|
||||||
|
await Task.Delay(350);
|
||||||
|
if (!isFloatingBarFolded)
|
||||||
|
{
|
||||||
|
ViewboxFloatingBarMarginAnimation(-60);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user