1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 14:22:55 +08:00

Revert beginClickSelection logic

This commit is contained in:
kamp 2020-11-15 16:54:48 +01:00
parent 83727a2e85
commit 1db303b159

View File

@ -338,15 +338,18 @@ 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)
{ {
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren.ToList()) bool selectedPerformed = true;
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren)
{ {
if (!blueprint.IsHovered) continue; if (!blueprint.IsHovered) continue;
if (SelectionHandler.HandleSelectionRequested(blueprint, e)) selectedPerformed &= SelectionHandler.HandleSelectionRequested(blueprint, e);
return clickSelectionBegan = true; clickSelectionBegan = true;
break;
} }
return false; return selectedPerformed;
} }
/// <summary> /// <summary>