mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Ensure selected blueprints are given selection priority
This commit is contained in:
parent
8e0536e1e2
commit
dd48b68f8a
@ -338,7 +338,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
private bool beginClickSelection(MouseButtonEvent e)
|
||||
{
|
||||
// Iterate from the top of the input stack (blueprints closest to the front of the screen first).
|
||||
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren.Reverse())
|
||||
// Priority is given to already-selected blueprints.
|
||||
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren.Reverse().OrderByDescending(b => b.IsSelected))
|
||||
{
|
||||
if (!blueprint.IsHovered) continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user