mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Fix right clicking to select not showing context menu
This commit is contained in:
parent
3f8928ca25
commit
b4525c1f6e
@ -90,8 +90,6 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
public bool OnReleased(PlatformAction action) => action.ActionMethod == PlatformActionMethod.Delete;
|
||||
|
||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => selectedBlueprints.Any(b => b.IsHovered);
|
||||
|
||||
#endregion
|
||||
|
||||
#region Selection Handling
|
||||
@ -223,7 +221,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!SelectedBlueprints.Any())
|
||||
if (!selectedBlueprints.Any(b => b.IsHovered))
|
||||
return Array.Empty<MenuItem>();
|
||||
|
||||
return new MenuItem[]
|
||||
|
Loading…
Reference in New Issue
Block a user