1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Split on multiple lines

This commit is contained in:
smoogipoo 2019-10-21 14:08:28 +09:00
parent 190a83da6e
commit fc7e4680a7

View File

@ -191,7 +191,13 @@ namespace osu.Game.Screens.Edit.Compose.Components
}
}
private void updatePlacementPosition(Vector2 screenSpacePosition) => currentPlacement.UpdatePosition(ToScreenSpace(composer.GetSnappedPosition(ToLocalSpace(screenSpacePosition))));
private void updatePlacementPosition(Vector2 screenSpacePosition)
{
Vector2 snappedGridPosition = composer.GetSnappedPosition(ToLocalSpace(screenSpacePosition));
Vector2 snappedScreenSpacePosition = ToScreenSpace(snappedGridPosition);
currentPlacement.UpdatePosition(snappedScreenSpacePosition);
}
/// <summary>
/// Select all masks in a given rectangle selection area.