修复在非PPT模式下使用滚轮会导致软件崩溃

This commit is contained in:
甲甲 2022-10-15 09:44:31 +08:00 committed by GitHub
parent cd0fdd6b20
commit 51751d5dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,8 @@ namespace Ink_Canvas
private void Window_MouseWheel(object sender, MouseWheelEventArgs e)
{
if (e.Delta >= 120)
if (StackPanelPPTControls.Visibility != Visibility.Visible || currentMode != 0) return;
if (e.Delta >= 120)
{
BtnPPTSlidesUp_Click(BtnPPTSlidesUp, null);
}