mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:43:01 +08:00
Fix beatmap card song preview progress sometimes showing past progress for one frame
This commit is contained in:
parent
679df9bf8b
commit
7f7e72705f
@ -75,9 +75,9 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Buttons
|
|||||||
Playing.BindValueChanged(updateState, true);
|
Playing.BindValueChanged(updateState, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void UpdateAfterChildren()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.UpdateAfterChildren();
|
||||||
|
|
||||||
if (Playing.Value && previewTrack != null && previewTrack.TrackLoaded)
|
if (Playing.Value && previewTrack != null && previewTrack.TrackLoaded)
|
||||||
progress.Value = previewTrack.CurrentTime / previewTrack.Length;
|
progress.Value = previewTrack.CurrentTime / previewTrack.Length;
|
||||||
|
Loading…
Reference in New Issue
Block a user