1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 03:59:55 +08:00

Fix missing dependency in ZoomableScrollContainer test

This commit is contained in:
Dean Herbert
2020-02-14 14:41:55 +09:00
Unverified
parent 60d796ae3f
commit 0e439e3a70
@@ -32,7 +32,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private float currentZoom = 1;
[Resolved]
[Resolved(canBeNull: true)]
private IFrameBasedClock editorClock { get; set; }
public ZoomableScrollContainer()
@@ -112,7 +112,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
// can't handle scroll correctly while playing.
// the editor will handle this case for us.
if (editorClock.IsRunning)
if (editorClock?.IsRunning == true)
return false;
// for now, we don't support zoom when using a precision scroll device. this needs gesture support.