1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 00:20:21 +08:00

Fix osu!mania editor not zooming playfield to match timeline (#37176)

- Fixes CI failures due to completely wrong test (sorry)
- Fixes #37167 (oops)
This commit is contained in:
Dean Herbert
2026-04-02 19:49:45 +09:00
committed by GitHub
Unverified
parent c4f2c66fd6
commit e207a42889
2 changed files with 2 additions and 2 deletions
@@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Mania.Edit
protected override void Update()
{
TimeRange.Value = TimelineTimeRange == null || ShowSpeedChanges.Value ? ComputeScrollTime(Config.Get<double>(ManiaRulesetSetting.ScrollSpeed)) : TimelineTimeRange.Value;
TargetTimeRange = TimelineTimeRange == null || ShowSpeedChanges.Value ? ComputeScrollTime(Config.Get<double>(ManiaRulesetSetting.ScrollSpeed)) : TimelineTimeRange.Value;
base.Update();
}
}
@@ -472,7 +472,7 @@ namespace osu.Game.Tests.Visual.Navigation
void checkScrollSpeed(double configValue, double gameplayValue)
{
AddUntilStep($"config value is {configValue}", () => getConfigManager().Get<double>(ManiaRulesetSetting.ScrollSpeed), () => Is.EqualTo(configValue));
AddUntilStep($"gameplay value is {gameplayValue}", () => this.ChildrenOfType<DrawableManiaRuleset>().Single().ScrollingInfo.TimeRange.Value,
AddUntilStep($"gameplay value is {gameplayValue}", () => this.ChildrenOfType<DrawableManiaRuleset>().Single().TargetTimeRange,
() => Is.EqualTo(DrawableManiaRuleset.ComputeScrollTime(gameplayValue)));
}