Fix race conditions causing menu transitions to look wrong when executed in very fast succession.

This commit is contained in:
Dean Herbert
2017-02-07 22:19:36 +09:00
parent d06f0cf870
commit 34a030e3be
2 changed files with 6 additions and 4 deletions

View File

@ -272,11 +272,11 @@ namespace osu.Game.Screens.Menu
{
sampleClick.Play();
clickAction?.Invoke();
boxHoverLayer.ClearTransformations();
boxHoverLayer.Alpha = 0.9f;
boxHoverLayer.FadeOut(800, EasingTypes.OutExpo);
clickAction?.Invoke();
}
public override bool HandleInput => state != ButtonState.Exploded && box.Scale.X >= 0.8f;