mirror of https://github.com/ppy/osu
Fix selecting underneath selected blueprints (#6719)
Fix selecting underneath selected blueprints Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
commit
f0a6fbdeb0
|
@ -254,6 +254,12 @@ private void beginClickSelection(UIEvent e)
|
|||
{
|
||||
Debug.Assert(!clickSelectionBegan);
|
||||
|
||||
// If a select blueprint is already hovered, disallow changes in selection.
|
||||
// Exception is made when holding control, as deselection should still be allowed.
|
||||
if (!e.CurrentState.Keyboard.ControlPressed &&
|
||||
selectionHandler.SelectedBlueprints.Any(s => s.IsHovered))
|
||||
return;
|
||||
|
||||
foreach (SelectionBlueprint blueprint in selectionBlueprints.AliveBlueprints)
|
||||
{
|
||||
if (blueprint.IsHovered)
|
||||
|
|
Loading…
Reference in New Issue