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:
parent
337311c323
commit
399a1a16a0
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user