1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 20:05:29 +08:00

fix wrong control flow on hover lost

This commit is contained in:
integer 2023-01-14 14:19:02 +00:00
parent c3c1d77e8e
commit 2831db53f7

View File

@ -29,12 +29,13 @@ namespace osu.Game.Screens.Play.PlayerSettings
protected override void OnHoverLost(HoverLostEvent e) protected override void OnHoverLost(HoverLostEvent e)
{ {
if (hoverExpandEvent == null) return; if (hoverExpandEvent != null)
{
hoverExpandEvent?.Cancel(); hoverExpandEvent?.Cancel();
hoverExpandEvent = null; hoverExpandEvent = null;
Expanded.Value = false; Expanded.Value = false;
}
base.OnHoverLost(e); base.OnHoverLost(e);
} }