mirror of
https://github.com/ppy/osu
synced 2025-01-08 23:29:43 +00: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)
|
||||
return false;
|
||||
|
||||
if (Math.Abs(Clock.CurrentTime - HitTime) > 200)
|
||||
return false;
|
||||
|
||||
if (IsHovered)
|
||||
attemptHit();
|
||||
return base.OnKeyDown(e);
|
||||
@ -240,6 +243,10 @@ namespace osu.Game.Screens.Utility
|
||||
if (HitEvent != null)
|
||||
return;
|
||||
|
||||
// in case it was hit outside of display range, show immediately
|
||||
// so the user isn't confused.
|
||||
this.FadeIn();
|
||||
|
||||
approach.Expire();
|
||||
|
||||
circle
|
||||
|
Loading…
Reference in New Issue
Block a user