Fix reversing scroll direction not always behaving as expected

This commit is contained in:
Dean Herbert
2020-07-17 16:03:13 +09:00
parent e651a87d1d
commit e96e558728
2 changed files with 15 additions and 4 deletions

View File

@ -120,7 +120,7 @@ namespace osu.Game.Screens.Edit
// Due to the rounding above, we may end up on the current beat. This will effectively cause 0 seeking to happen, but we don't want this.
// Instead, we'll go to the next beat in the direction when this is the case
if (Precision.AlmostEquals(current, seekTime))
if (Precision.AlmostEquals(current, seekTime, 1))
{
closestBeat += direction > 0 ? 1 : -1;
seekTime = timingPoint.Time + closestBeat * seekAmount;