From eeb4a25d7a3a7997f9b310673b8bab5dee54d820 Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Sat, 27 Dec 2025 19:46:08 +0800 Subject: [PATCH] fix:issue #327 --- Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs b/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs index 1db579cf..cfbbcf2c 100644 --- a/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs +++ b/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs @@ -1516,6 +1516,7 @@ namespace Ink_Canvas if (lastBorderMouseDownObject is Panel panel) panel.Background = new SolidColorBrush(Colors.Transparent); + if (sender == ToolsFloatingBarBtn && lastBorderMouseDownObject != ToolsFloatingBarBtn) return; if (BorderTools.Visibility == Visibility.Visible) { @@ -1549,6 +1550,11 @@ namespace Ink_Canvas AnimationsHelper.ShowWithSlideFromBottomAndFade(BorderTools); AnimationsHelper.ShowWithSlideFromBottomAndFade(BoardBorderTools); } + + if (sender == ToolsFloatingBarBtn) + { + lastBorderMouseDownObject = null; + } } private bool isViewboxFloatingBarMarginAnimationRunning;