mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 21:57:24 +09: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 bool OnReleased(PlatformAction action) => action.ActionMethod == PlatformActionMethod.Delete;
|
||||||
|
|
||||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => selectedBlueprints.Any(b => b.IsHovered);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Selection Handling
|
#region Selection Handling
|
||||||
@ -223,7 +221,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!SelectedBlueprints.Any())
|
if (!selectedBlueprints.Any(b => b.IsHovered))
|
||||||
return Array.Empty<MenuItem>();
|
return Array.Empty<MenuItem>();
|
||||||
|
|
||||||
return new MenuItem[]
|
return new MenuItem[]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user