Apply suggestions from code review

Co-Authored-By: smoogipoo <1329837+smoogipoo@users.noreply.github.com>
This commit is contained in:
Dean Herbert
2019-02-22 17:06:49 +09:00
committed by GitHub
parent 8f53af1c71
commit 452caabd40
12 changed files with 20 additions and 20 deletions

View File

@ -51,7 +51,7 @@ namespace osu.Game.Rulesets.Mania.UI.Components
direction.BindTo(scrollingInfo.Direction);
direction.BindValueChanged(e =>
{
Anchor anchor = direction.Value == ScrollingDirection.Up ? Anchor.TopLeft : Anchor.BottomLeft;
Anchor anchor = e.NewValue == ScrollingDirection.Up ? Anchor.TopLeft : Anchor.BottomLeft;
hitTargetBar.Anchor = hitTargetBar.Origin = anchor;
hitTargetLine.Anchor = hitTargetLine.Origin = anchor;