1
0
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:
Dean Herbert 2019-11-12 14:42:30 +09:00
parent 3f8928ca25
commit b4525c1f6e

View File

@ -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[]