mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 11:37:32 +09: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:
|
case SelectionState.Selected:
|
||||||
this.ScaleTo(1.04f, transition_length, Easing.OutExpo);
|
this.ScaleTo(1.04f, transition_length, Easing.OutExpo);
|
||||||
selectedGlowContainer.FadeIn(transition_length, Easing.OutExpo);
|
selectedGlowContainer.FadeIn(transition_length, Easing.OutExpo);
|
||||||
|
hoverSample?.Play();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SelectionState.NotSelected:
|
case SelectionState.NotSelected:
|
||||||
@ -398,8 +399,6 @@ namespace osu.Game.Overlays.Volume
|
|||||||
selectedGlowContainer.FadeOut(transition_length, Easing.OutExpo);
|
selectedGlowContainer.FadeOut(transition_length, Easing.OutExpo);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
hoverSample?.Play();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user