1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 21:33:51 +08:00

Clamping seekTime to beatmap length

This commit is contained in:
Marvin Schürz 2021-08-15 14:48:56 +02:00
parent f49c9673cc
commit d287db7961

View File

@ -118,6 +118,7 @@ namespace osu.Game.Screens.Edit
if (!snapped || ControlPointInfo.TimingPoints.Count == 0)
{
seekTime = Math.Clamp(seekTime, 0, TrackLength);
SeekSmoothlyTo(seekTime);
return;
}