Skip to content

Commit

Permalink
Only accept input while hovered
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Nov 13, 2019
1 parent d835def commit 031b686
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ public MenuItem[] ContextMenuItems
{
get
{
if (!Pieces.Any(p => p.IsHovered))
return null;

int selectedPoints = Pieces.Count(p => p.IsSelected.Value);

if (selectedPoints == 0)
Expand Down

0 comments on commit 031b686

Please sign in to comment.