1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Reorder methods

This commit is contained in:
smoogipoo 2019-05-09 13:53:53 +09:00
parent d625f3c104
commit 5c6b4d923f

View File

@ -92,7 +92,13 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
}
}
private void updateZoomedContentWidth() => zoomedContent.Width = DrawWidth * currentZoom;
protected override void LoadComplete()
{
base.LoadComplete();
// This width only gets updated on the application of a transform, so this needs to be initialized here.
updateZoomedContentWidth();
}
protected override bool OnScroll(ScrollEvent e)
{
@ -104,13 +110,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
return true;
}
protected override void LoadComplete()
{
base.LoadComplete();
// This width only gets updated on the application of a transform, so this needs to be initialized here.
updateZoomedContentWidth();
}
private void updateZoomedContentWidth() => zoomedContent.Width = DrawWidth * currentZoom;
private float zoomTarget = 1;