diff --git a/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs b/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs index dd04a0a..f808adb 100644 --- a/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs @@ -43,7 +43,7 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope // 容忍时间(节拍误差) - public double _beatTolerance = 0.2; // ±150ms + public double _beatTolerance = 0.24; // ±150ms private int _totalDots = 0; // 滚动显示的节拍点集合 public ObservableCollection BeatDisplayLeft { get; set; } = new(); diff --git a/Wpf_AiSportsMicrospace/Views/Main.xaml b/Wpf_AiSportsMicrospace/Views/Main.xaml index b80a7a1..a1ecc16 100644 --- a/Wpf_AiSportsMicrospace/Views/Main.xaml +++ b/Wpf_AiSportsMicrospace/Views/Main.xaml @@ -6,7 +6,7 @@ xmlns:local="clr-namespace:Wpf_AiSportsMicrospace.Views" xmlns:gif="http://wpfanimatedgif.codeplex.com" WindowStyle="None" - mc:Ignorable="d" WindowState="Maximized"> + mc:Ignorable="d" WindowState="Maximized" MouseDoubleClick="Window_MouseDoubleClick"> diff --git a/Wpf_AiSportsMicrospace/Views/Main.xaml.cs b/Wpf_AiSportsMicrospace/Views/Main.xaml.cs index c55d42c..f2cfa02 100644 --- a/Wpf_AiSportsMicrospace/Views/Main.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/Main.xaml.cs @@ -379,6 +379,15 @@ namespace Wpf_AiSportsMicrospace.Views time3.Visibility = Visibility.Hidden; num++; } + + private void Window_MouseDoubleClick(object sender, MouseButtonEventArgs e) + { + // 确认是左键双击 + if (e.ChangedButton == MouseButton.Right) + { + Application.Current.Shutdown(); + } + } }