1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +08:00

Avoid double playback of sample

This commit is contained in:
Jamie Taylor 2021-07-08 20:36:25 +09:00
parent 93eb385dd4
commit 8746ef0ba9
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -391,6 +391,7 @@ namespace osu.Game.Overlays.Volume
case SelectionState.Selected:
this.ScaleTo(1.04f, transition_length, Easing.OutExpo);
selectedGlowContainer.FadeIn(transition_length, Easing.OutExpo);
hoverSample?.Play();
break;
case SelectionState.NotSelected:
@ -398,8 +399,6 @@ namespace osu.Game.Overlays.Volume
selectedGlowContainer.FadeOut(transition_length, Easing.OutExpo);
break;
}
hoverSample?.Play();
}
}
}