Prevent user from scrolling outside the timeline in the editor

This commit is contained in:
AlFasGD
2018-05-08 16:21:54 +03:00
parent 420e50b6da
commit dd9b9a18ac
2 changed files with 14 additions and 1 deletions

View File

@ -47,7 +47,7 @@ namespace osu.Game.Screens.Edit
{
// TODO: should probably be done at a RulesetContainer level to share logic with Player.
var sourceClock = (IAdjustableClock)Beatmap.Value.Track ?? new StopwatchClock();
clock = new EditorClock(Beatmap.Value.Beatmap.ControlPointInfo, beatDivisor) { IsCoupled = false };
clock = new EditorClock(Beatmap, beatDivisor) { IsCoupled = false };
clock.ChangeSource(sourceClock);
dependencies.CacheAs<IFrameBasedClock>(clock);