1
0
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:
Huo Yaoyuan 2016-10-27 19:51:38 +08:00
parent 73d1eeb272
commit eab8caaa0c

View File

@ -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);