add safe margin
4 pixels seemed a bit much, smaller adjustments could lead to the menu still showing
This commit is contained in:
@@ -1116,7 +1116,8 @@ namespace FlaxEditor.Surface
|
|||||||
// Secondary Context Menu
|
// Secondary Context Menu
|
||||||
if (button == MouseButton.Right)
|
if (button == MouseButton.Right)
|
||||||
{
|
{
|
||||||
if (mouseDownMousePosition != Input.Mouse.Position)
|
float distance = Float2.Distance(mouseDownMousePosition, Input.Mouse.Position);
|
||||||
|
if (distance > 2.5f)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (!IsSelected)
|
if (!IsSelected)
|
||||||
|
|||||||
Reference in New Issue
Block a user