mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:22:56 +08:00
Ensure track is playing after seek.
This commit is contained in:
parent
73d1eeb272
commit
eab8caaa0c
@ -266,7 +266,11 @@ namespace osu.Game.Overlays
|
||||
return scaledSprite;
|
||||
}
|
||||
|
||||
private void seek(float position) => CurrentTrack?.Seek(CurrentTrack.Length * position);
|
||||
private void seek(float position)
|
||||
{
|
||||
CurrentTrack?.Seek(CurrentTrack.Length * position);
|
||||
CurrentTrack?.Start();
|
||||
}
|
||||
|
||||
//placeholder for toggling
|
||||
protected override void PopIn() => FadeIn(500);
|
||||
|
Loading…
Reference in New Issue
Block a user