Merge pull request #8238 from voidedWarranties/editor-song-end

This commit is contained in:
Dean Herbert
2021-03-19 16:32:23 +09:00
committed by GitHub
4 changed files with 111 additions and 12 deletions

View File

@ -177,7 +177,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
if (!track.IsLoaded)
return;
editorClock.Seek(Current / Content.DrawWidth * track.Length);
double target = Current / Content.DrawWidth * track.Length;
editorClock.Seek(Math.Min(track.Length, target));
}
private void scrollToTrackTime()