Merge branch 'master' into editor-scrolling-playfield-support

This commit is contained in:
Dan Balasescu
2020-05-26 14:46:58 +09:00
committed by GitHub
25 changed files with 259 additions and 140 deletions

View File

@ -118,7 +118,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);