mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Fix weird conditional
This commit is contained in:
parent
a9088d9231
commit
58217b6839
@ -79,7 +79,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
if (timeline == null || !(DrawWidth > 0)) return;
|
if (timeline == null || DrawWidth <= 0) return;
|
||||||
|
|
||||||
(float, float) newRange = (
|
(float, float) newRange = (
|
||||||
(ToLocalSpace(timeline.ScreenSpaceDrawQuad.TopLeft).X - PointVisualisation.MAX_WIDTH * 2) / DrawWidth * Content.RelativeChildSize.X,
|
(ToLocalSpace(timeline.ScreenSpaceDrawQuad.TopLeft).X - PointVisualisation.MAX_WIDTH * 2) / DrawWidth * Content.RelativeChildSize.X,
|
||||||
|
Loading…
Reference in New Issue
Block a user