1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +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> /// <returns>Whether a selection was performed.</returns>
private bool beginClickSelection(MouseButtonEvent e) private bool beginClickSelection(MouseButtonEvent e)
{ {
bool selectedPerformed = true;
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren) foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren)
{ {
if (!blueprint.IsHovered) continue; if (!blueprint.IsHovered) continue;
selectedPerformed &= SelectionHandler.HandleSelectionRequested(blueprint, e); return clickSelectionBegan = SelectionHandler.HandleSelectionRequested(blueprint, e);
clickSelectionBegan = true;
break;
} }
return selectedPerformed; return false;
} }
/// <summary> /// <summary>