Fix sample disabled status not being updated correctly from seek state

This commit is contained in:
Dean Herbert
2020-10-05 12:46:15 +09:00
parent af7d10afe0
commit e4710f82ec
2 changed files with 11 additions and 5 deletions

View File

@ -228,7 +228,9 @@ namespace osu.Game.Rulesets.UI
{
}
public override bool IsSeeking => ParentGameplayClock != null && Math.Abs(CurrentTime - ParentGameplayClock.CurrentTime) > 200;
protected override bool ShouldDisableSamplePlayback =>
// handle the case where playback is catching up to real-time.
base.ShouldDisableSamplePlayback || (ParentGameplayClock != null && Math.Abs(CurrentTime - ParentGameplayClock.CurrentTime) > 200);
}
}
}