Reduce line length

This commit is contained in:
Dean Herbert 2018-06-25 19:28:38 +09:00
parent 594cc0d21d
commit a397827841
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ private void load(IScrollingInfo scrollingInfo)
direction.BindTo(scrollingInfo.Direction);
direction.BindValueChanged(direction =>
{
hitTargetBar.Anchor = hitTargetBar.Origin = hitTargetLine.Anchor = hitTargetLine.Origin = direction == ScrollingDirection.Up ? Anchor.TopLeft : Anchor.BottomLeft;
Anchor anchor = direction == ScrollingDirection.Up ? Anchor.TopLeft : Anchor.BottomLeft;
hitTargetBar.Anchor = hitTargetBar.Origin = anchor;
hitTargetLine.Anchor = hitTargetLine.Origin = anchor;
}, true);
}