Fix being able to hit way too early using keyboard

This commit is contained in:
Dean Herbert 2022-06-10 19:35:21 +09:00
parent 2f1c331f65
commit 41d16c613d

View File

@ -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