Add tweening seek support to EditorClock

This commit is contained in:
Dean Herbert
2020-05-22 16:40:52 +09:00
parent dd09d7830d
commit d18eb663b1
8 changed files with 129 additions and 25 deletions

View File

@ -104,7 +104,8 @@ namespace osu.Game.Rulesets.Osu.Edit
var objects = selectedHitObjects.ToList();
if (objects.Count == 0)
return createGrid(h => h.StartTime <= EditorClock.CurrentTime);
// use accurate time value to give more instantaneous feedback to the user.
return createGrid(h => h.StartTime <= EditorClock.CurrentTimeAccurate);
double minTime = objects.Min(h => h.StartTime);
return createGrid(h => h.StartTime < minTime, objects.Count + 1);