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

Fix beatmap card song preview progress sometimes showing past progress for one frame

This commit is contained in:
Joseph Madamba 2023-02-13 14:15:37 -08:00
parent 679df9bf8b
commit 7f7e72705f

View File

@ -75,9 +75,9 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Buttons
Playing.BindValueChanged(updateState, true);
}
protected override void Update()
protected override void UpdateAfterChildren()
{
base.Update();
base.UpdateAfterChildren();
if (Playing.Value && previewTrack != null && previewTrack.TrackLoaded)
progress.Value = previewTrack.CurrentTime / previewTrack.Length;