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:
parent
93eb385dd4
commit
8746ef0ba9
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user