Apply suggestions from code review

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Dan Balasescu
2020-05-10 13:49:08 +09:00
committed by GitHub
parent be3b77cf25
commit 2f12c4126a
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ namespace osu.Game.Rulesets.Mania.Tests
AddStep("grab hold note", () => AddStep("grab hold note", () =>
{ {
holdNote = this.ChildrenOfType<DrawableHoldNote>().FirstOrDefault(); holdNote = this.ChildrenOfType<DrawableHoldNote>().Single();
InputManager.MoveMouseTo(holdNote); InputManager.MoveMouseTo(holdNote);
InputManager.PressButton(MouseButton.Left); InputManager.PressButton(MouseButton.Left);
}); });

View File

@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.UI.Scrolling
[Resolved] [Resolved]
private IScrollingInfo scrollingInfo { get; set; } private IScrollingInfo scrollingInfo { get; set; }
// Responds to changes in the layout. When the layout is changes, all hit object states must be recomputed. // Responds to changes in the layout. When the layout changes, all hit object states must be recomputed.
private readonly LayoutValue layoutCache = new LayoutValue(Invalidation.RequiredParentSizeToFit | Invalidation.DrawInfo); private readonly LayoutValue layoutCache = new LayoutValue(Invalidation.RequiredParentSizeToFit | Invalidation.DrawInfo);
// A combined cache across all hit object states to reduce per-update iterations. // A combined cache across all hit object states to reduce per-update iterations.