From bb63805e8732bcc97f7126f9de6d7e028c036afb Mon Sep 17 00:00:00 2001 From: CJK_mkp <113243675+CJKmkp@users.noreply.github.com> Date: Thu, 23 Oct 2025 16:27:39 +0800 Subject: [PATCH] fix:issue #210 Removed the SimulateMultiTouchToggle method and its related comments. --- .../MainWindow_cs/MW_FloatingBarIcons.cs | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs b/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs index 0f5fbae7..42680be6 100644 --- a/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs +++ b/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs @@ -2843,40 +2843,10 @@ namespace Ink_Canvas CancelSingleFingerDragMode(); if (Settings.Canvas.ClearCanvasAndClearTimeMachine) timeMachine.ClearStrokeHistory(); - - // 清空墨迹后模拟用户重新手动开关多指书写功能 - SimulateMultiTouchToggle(); } private bool lastIsInMultiTouchMode; - /// - /// 模拟用户重新手动开关多指书写功能 - /// - private void SimulateMultiTouchToggle() - { - try - { - // 检查多指书写模式是否启用 - if (ToggleSwitchEnableMultiTouchMode != null && ToggleSwitchEnableMultiTouchMode.IsOn) - { - // 先关闭多指书写模式 - ToggleSwitchEnableMultiTouchMode.IsOn = false; - - // 使用Dispatcher.BeginInvoke确保UI更新完成后再重新开启 - Dispatcher.BeginInvoke(new Action(() => - { - // 重新开启多指书写模式 - ToggleSwitchEnableMultiTouchMode.IsOn = true; - }), DispatcherPriority.Background); - } - } - catch (Exception ex) - { - LogHelper.WriteLogToFile($"模拟多指书写开关时发生错误: {ex.Message}", LogHelper.LogType.Error); - } - } - private void CancelSingleFingerDragMode() { if (ToggleSwitchDrawShapeBorderAutoHide.IsOn) CollapseBorderDrawShape();