Use compound assignment.

This commit is contained in:
Huo Yaoyuan
2019-11-12 17:56:38 +08:00
parent 4b75e0bf6a
commit 7d7b9e36b2
13 changed files with 13 additions and 13 deletions

View File

@ -55,7 +55,7 @@ namespace osu.Game.Rulesets.Mania.Edit
// Flip the vertical coordinate space when scrolling downwards
if (scrollingInfo.Direction.Value == ScrollingDirection.Down)
targetPosition = targetPosition - referenceParent.DrawHeight;
targetPosition -= referenceParent.DrawHeight;
float movementDelta = targetPosition - reference.DrawableObject.Position.Y;