fix:开启部分功能后手势面板显示异常
This commit is contained in:
@@ -28,6 +28,10 @@ namespace Ink_Canvas
|
||||
AnimationsHelper.HideWithSlideAndFade(BlackboardLeftSide);
|
||||
AnimationsHelper.HideWithSlideAndFade(BlackboardCenterSide);
|
||||
AnimationsHelper.HideWithSlideAndFade(BlackboardRightSide);
|
||||
|
||||
// 在PPT模式下隐藏手势面板
|
||||
AnimationsHelper.HideWithSlideAndFade(TwoFingerGestureBorder);
|
||||
AnimationsHelper.HideWithSlideAndFade(BoardTwoFingerGestureBorder);
|
||||
}
|
||||
|
||||
BtnHideInkCanvas_Click(BtnHideInkCanvas, null);
|
||||
|
||||
@@ -2472,6 +2472,10 @@ namespace Ink_Canvas
|
||||
|
||||
DeselectUIElement();
|
||||
|
||||
// 在PPT模式下隐藏手势面板
|
||||
AnimationsHelper.HideWithSlideAndFade(TwoFingerGestureBorder);
|
||||
AnimationsHelper.HideWithSlideAndFade(BoardTwoFingerGestureBorder);
|
||||
|
||||
SaveStrokes(true);
|
||||
ClearStrokes(true);
|
||||
RestoreStrokes(true);
|
||||
@@ -2517,6 +2521,10 @@ namespace Ink_Canvas
|
||||
// 取消任何UI元素的选择
|
||||
DeselectUIElement();
|
||||
|
||||
// 在PPT模式下隐藏手势面板
|
||||
AnimationsHelper.HideWithSlideAndFade(TwoFingerGestureBorder);
|
||||
AnimationsHelper.HideWithSlideAndFade(BoardTwoFingerGestureBorder);
|
||||
|
||||
SaveStrokes();
|
||||
ClearStrokes(true);
|
||||
RestoreStrokes(true);
|
||||
|
||||
@@ -292,6 +292,10 @@ namespace Ink_Canvas
|
||||
|
||||
BorderFloatingBarMainControls.Visibility = Visibility.Visible;
|
||||
|
||||
// 在PPT模式下隐藏手势面板
|
||||
AnimationsHelper.HideWithSlideAndFade(TwoFingerGestureBorder);
|
||||
AnimationsHelper.HideWithSlideAndFade(BoardTwoFingerGestureBorder);
|
||||
|
||||
if (Settings.PowerPointSettings.IsShowCanvasAtNewSlideShow &&
|
||||
!Settings.Automation.IsAutoFoldInPPTSlideShow)
|
||||
BtnColorRed_Click(null, null);
|
||||
@@ -394,6 +398,13 @@ namespace Ink_Canvas
|
||||
// 注意:这里只清空索引0的备份,不影响白板页面的墨迹(索引1及以上)
|
||||
TimeMachineHistories[0] = null;
|
||||
|
||||
// 退出PPT模式时恢复手势面板的显示状态
|
||||
if (Settings.Gesture.IsEnableTwoFingerGesture && ToggleSwitchEnableMultiTouchMode.IsOn)
|
||||
{
|
||||
// 根据手势设置决定是否显示手势面板
|
||||
CheckEnableTwoFingerGestureBtnVisibility(true);
|
||||
}
|
||||
|
||||
if (GridTransparencyFakeBackground.Background != Brushes.Transparent)
|
||||
BtnHideInkCanvas_Click(BtnHideInkCanvas, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user