mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 20:57:28 +09:00
Fix missing dependency in ZoomableScrollContainer test
This commit is contained in:
parent
60d796ae3f
commit
0e439e3a70
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user