From 86205c35a41110bdc7c5513bd30089e1820dbd3b Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 6 Feb 2017 20:46:53 +0900 Subject: [PATCH] Fix weird state changes of footer buttons. --- osu.Game/Screens/Select/FooterButton.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/Select/FooterButton.cs b/osu.Game/Screens/Select/FooterButton.cs index bf592396bb..365b043d3b 100644 --- a/osu.Game/Screens/Select/FooterButton.cs +++ b/osu.Game/Screens/Select/FooterButton.cs @@ -97,7 +97,6 @@ namespace osu.Game.Screens.Select HoverLost?.Invoke(); light.ScaleTo(new Vector2(1, 1), Footer.TRANSITION_LENGTH, EasingTypes.OutQuint); light.FadeColour(DeselectedColour, Footer.TRANSITION_LENGTH, EasingTypes.OutQuint); - box.FadeOut(Footer.TRANSITION_LENGTH, EasingTypes.OutQuint); } protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) @@ -106,6 +105,12 @@ namespace osu.Game.Screens.Select return base.OnMouseDown(state, args); } + protected override bool OnMouseUp(InputState state, MouseUpEventArgs args) + { + box.FadeOut(Footer.TRANSITION_LENGTH, EasingTypes.OutQuint); + return base.OnMouseUp(state, args); + } + protected override bool OnClick(InputState state) { box.ClearTransformations();