mirror of
https://github.com/ppy/osu
synced 2025-04-07 17:51:54 +00: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)
|
private bool beginClickSelection(MouseButtonEvent e)
|
||||||
{
|
{
|
||||||
// Iterate from the top of the input stack (blueprints closest to the front of the screen first).
|
// 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;
|
if (!blueprint.IsHovered) continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user