1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Only play OsuHoverContainer hover effect if action is present

This commit is contained in:
Dean Herbert 2019-05-21 14:07:40 +09:00
parent 2cf43dc4d4
commit 89e62c3d30

View File

@ -22,6 +22,7 @@ namespace osu.Game.Graphics.Containers
protected override bool OnHover(HoverEvent e)
{
if (Action != null)
EffectTargets.ForEach(d => d.FadeColour(HoverColour, FADE_DURATION, Easing.OutQuint));
return base.OnHover(e);
}