Make PPTNavigationBtn_MouseDown async

Changed PPTNavigationBtn_MouseDown to be asynchronous and added a delay for animation.
This commit is contained in:
CJK_mkp
2025-10-22 12:08:29 +08:00
committed by GitHub
parent 372a8a1de1
commit 73e679f268
+2 -1
View File
@@ -1548,7 +1548,7 @@ namespace Ink_Canvas
}); });
} }
private void PPTNavigationBtn_MouseDown(object sender, MouseButtonEventArgs e) private void async PPTNavigationBtn_MouseDown(object sender, MouseButtonEventArgs e)
{ {
lastBorderMouseDownObject = sender; lastBorderMouseDownObject = sender;
if (!Settings.PowerPointSettings.EnablePPTButtonPageClickable) return; if (!Settings.PowerPointSettings.EnablePPTButtonPageClickable) return;
@@ -1640,6 +1640,7 @@ namespace Ink_Canvas
// 控制居中 // 控制居中
if (!isFloatingBarFolded) if (!isFloatingBarFolded)
{ {
await Task.Delay(100);
ViewboxFloatingBarMarginAnimation(60); ViewboxFloatingBarMarginAnimation(60);
} }
} }