mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
Fix being able to hit way too early using keyboard
This commit is contained in:
parent
2f1c331f65
commit
41d16c613d
@ -218,6 +218,9 @@ namespace osu.Game.Screens.Utility
|
|||||||
if (!IsActive.Value)
|
if (!IsActive.Value)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (Math.Abs(Clock.CurrentTime - HitTime) > 200)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (IsHovered)
|
if (IsHovered)
|
||||||
attemptHit();
|
attemptHit();
|
||||||
return base.OnKeyDown(e);
|
return base.OnKeyDown(e);
|
||||||
@ -240,6 +243,10 @@ namespace osu.Game.Screens.Utility
|
|||||||
if (HitEvent != null)
|
if (HitEvent != null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// in case it was hit outside of display range, show immediately
|
||||||
|
// so the user isn't confused.
|
||||||
|
this.FadeIn();
|
||||||
|
|
||||||
approach.Expire();
|
approach.Expire();
|
||||||
|
|
||||||
circle
|
circle
|
||||||
|
Loading…
Reference in New Issue
Block a user