update:双击退出&阈值调大
This commit is contained in:
commit
16f0d69267
@ -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<BeatItem> BeatDisplayLeft { get; set; } = new();
|
||||
|
||||
@ -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">
|
||||
<Grid>
|
||||
<!-- 过渡容器 -->
|
||||
<ContentControl x:Name="MainContent"/>
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user