Only track logo if we're still the current screen

This commit is contained in:
David Zhao 2019-04-24 16:20:51 +09:00
parent 65f5318298
commit 8222923ab8
1 changed files with 5 additions and 1 deletions

View File

@ -163,7 +163,11 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
logo.ScaleTo(new Vector2(0.15f), duration, Easing.In);
logo.FadeIn(350);
Scheduler.AddDelayed(() => { content.StartTracking(logo, resuming ? 0 : 500, Easing.InOutExpo); }, resuming ? 0 : 500);
Scheduler.AddDelayed(() =>
{
if (this.IsCurrentScreen())
content.StartTracking(logo, resuming ? 0 : 500, Easing.InOutExpo);
}, resuming ? 0 : 500);
}
protected override void LogoExiting(OsuLogo logo)