This commit is contained in:
2025-12-27 19:46:08 +08:00
parent fdf07180dd
commit eeb4a25d7a
@@ -1516,6 +1516,7 @@ namespace Ink_Canvas
if (lastBorderMouseDownObject is Panel panel) if (lastBorderMouseDownObject is Panel panel)
panel.Background = new SolidColorBrush(Colors.Transparent); panel.Background = new SolidColorBrush(Colors.Transparent);
if (sender == ToolsFloatingBarBtn && lastBorderMouseDownObject != ToolsFloatingBarBtn) return;
if (BorderTools.Visibility == Visibility.Visible) if (BorderTools.Visibility == Visibility.Visible)
{ {
@@ -1549,6 +1550,11 @@ namespace Ink_Canvas
AnimationsHelper.ShowWithSlideFromBottomAndFade(BorderTools); AnimationsHelper.ShowWithSlideFromBottomAndFade(BorderTools);
AnimationsHelper.ShowWithSlideFromBottomAndFade(BoardBorderTools); AnimationsHelper.ShowWithSlideFromBottomAndFade(BoardBorderTools);
} }
if (sender == ToolsFloatingBarBtn)
{
lastBorderMouseDownObject = null;
}
} }
private bool isViewboxFloatingBarMarginAnimationRunning; private bool isViewboxFloatingBarMarginAnimationRunning;