mirror of https://github.com/ppy/osu
Only accept input while hovered
This commit is contained in:
parent
d835def4ab
commit
031b686ee9
|
@ -144,6 +144,9 @@ public MenuItem[] ContextMenuItems
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
if (!Pieces.Any(p => p.IsHovered))
|
||||||
|
return null;
|
||||||
|
|
||||||
int selectedPoints = Pieces.Count(p => p.IsSelected.Value);
|
int selectedPoints = Pieces.Count(p => p.IsSelected.Value);
|
||||||
|
|
||||||
if (selectedPoints == 0)
|
if (selectedPoints == 0)
|
||||||
|
|
Loading…
Reference in New Issue