mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 21:42:55 +08:00
Use TimingPointAfter for seeking check
This commit is contained in:
parent
2e11172e8e
commit
3a84409546
@ -132,7 +132,7 @@ namespace osu.Game.Screens.Edit
|
||||
seekTime = timingPoint.Time + closestBeat * seekAmount;
|
||||
|
||||
// limit forward seeking to only up to the next timing point's start time.
|
||||
var nextTimingPoint = ControlPointInfo.TimingPoints.FirstOrDefault(t => t.Time > timingPoint.Time);
|
||||
var nextTimingPoint = ControlPointInfo.TimingPointAfter(timingPoint.Time);
|
||||
if (seekTime > nextTimingPoint?.Time)
|
||||
seekTime = nextTimingPoint.Time;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user