mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00: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>
|
/// <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>
|
||||||
|
Loading…
Reference in New Issue
Block a user