Fix missing dependency in ZoomableScrollContainer test

This commit is contained in:
Dean Herbert 2020-02-14 14:41:55 +09:00
parent 60d796ae3f
commit 0e439e3a70

View File

@ -32,7 +32,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private float currentZoom = 1; private float currentZoom = 1;
[Resolved] [Resolved(canBeNull: true)]
private IFrameBasedClock editorClock { get; set; } private IFrameBasedClock editorClock { get; set; }
public ZoomableScrollContainer() public ZoomableScrollContainer()
@ -112,7 +112,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{ {
// can't handle scroll correctly while playing. // can't handle scroll correctly while playing.
// the editor will handle this case for us. // the editor will handle this case for us.
if (editorClock.IsRunning) if (editorClock?.IsRunning == true)
return false; return false;
// for now, we don't support zoom when using a precision scroll device. this needs gesture support. // for now, we don't support zoom when using a precision scroll device. this needs gesture support.