mirror of
https://github.com/ppy/osu
synced 2025-03-04 10:29:37 +00:00
Fix BlueprintContainer triggering assert when left and right mouse button are pressed together
This commit is contained in:
parent
a012105dac
commit
de6fcd1792
@ -295,21 +295,15 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
/// <returns>Whether a selection was performed.</returns>
|
||||
private bool beginClickSelection(MouseButtonEvent e)
|
||||
{
|
||||
Debug.Assert(!clickSelectionBegan);
|
||||
|
||||
bool selectedPerformed = true;
|
||||
|
||||
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren)
|
||||
{
|
||||
if (blueprint.IsHovered)
|
||||
{
|
||||
selectedPerformed &= SelectionHandler.HandleSelectionRequested(blueprint, e);
|
||||
clickSelectionBegan = true;
|
||||
break;
|
||||
}
|
||||
if (!blueprint.IsHovered) continue;
|
||||
|
||||
if (SelectionHandler.HandleSelectionRequested(blueprint, e))
|
||||
return clickSelectionBegan = true;
|
||||
}
|
||||
|
||||
return selectedPerformed;
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user