1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Refactor beginClickSelection in a slightly different way

This commit is contained in:
Bartłomiej Dach 2020-11-15 21:06:47 +01:00
parent 337311c323
commit 399a1a16a0

View File

@ -338,18 +338,14 @@ namespace osu.Game.Screens.Edit.Compose.Components
/// <returns>Whether a selection was performed.</returns>
private bool beginClickSelection(MouseButtonEvent e)
{
bool selectedPerformed = true;
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren)
{
if (!blueprint.IsHovered) continue;
selectedPerformed &= SelectionHandler.HandleSelectionRequested(blueprint, e);
clickSelectionBegan = true;
break;
return clickSelectionBegan = SelectionHandler.HandleSelectionRequested(blueprint, e);
}
return selectedPerformed;
return false;
}
/// <summary>