Fix not being able to scroll before the first timing point

This commit is contained in:
smoogipoo 2018-03-15 18:26:53 +09:00
parent 9e0aeec574
commit c937ef5d24

View File

@ -243,7 +243,7 @@ namespace osu.Game.Rulesets.Edit
seekTime = timingPoint.Time + closestBeat * seekAmount;
}
if (seekTime < timingPoint.Time)
if (seekTime < timingPoint.Time && timingPoint != cpi.TimingPoints.First())
seekTime = timingPoint.Time;
var nextTimingPoint = cpi.TimingPoints.FirstOrDefault(t => t.Time > timingPoint.Time);