From 927d85ea6839141718e44d53aa2f5d08877ac7c2 Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Sat, 10 Jan 2026 22:13:00 +0800 Subject: [PATCH] =?UTF-8?q?improve:PPT=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ink Canvas/MainWindow_cs/MW_PPT.cs | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/Ink Canvas/MainWindow_cs/MW_PPT.cs b/Ink Canvas/MainWindow_cs/MW_PPT.cs index 87bab3d1..035bf903 100644 --- a/Ink Canvas/MainWindow_cs/MW_PPT.cs +++ b/Ink Canvas/MainWindow_cs/MW_PPT.cs @@ -922,7 +922,16 @@ namespace Ink_Canvas await Application.Current.Dispatcher.InvokeAsync(() => { PureViewboxFloatingBarMarginAnimationInDesktopMode(); - ViewboxFloatingBarMarginAnimation(-60); + if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode) + { + Task.Delay(350).ContinueWith(_ => + { + Application.Current.Dispatcher.Invoke(() => + { + ViewboxFloatingBarMarginAnimation(-60); + }); + }); + } }); } catch (Exception ex) @@ -1638,8 +1647,12 @@ namespace Ink_Canvas SetCurrentToolMode(InkCanvasEditingMode.None); await Task.Delay(150); - // PPT退出时自动收纳,使用收纳状态的边距动画 - ViewboxFloatingBarMarginAnimation(-60); + PureViewboxFloatingBarMarginAnimationInDesktopMode(); + if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode) + { + await Task.Delay(350); + ViewboxFloatingBarMarginAnimation(-60); + } } catch (Exception ex) { @@ -1655,9 +1668,13 @@ namespace Ink_Canvas // 异常情况下也手动处理自动收纳 await HandleManualSlideShowEnd(); - // 异常情况下也要自动收纳,使用收纳状态的边距动画 await Task.Delay(150); - ViewboxFloatingBarMarginAnimation(-60); + PureViewboxFloatingBarMarginAnimationInDesktopMode(); + if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode) + { + await Task.Delay(350); + ViewboxFloatingBarMarginAnimation(-60); + } } }