Adjust precision for context menu showing on curve/keyframes
This commit is contained in:
@@ -443,7 +443,7 @@ namespace FlaxEditor.GUI
|
|||||||
Cursor = CursorType.Default;
|
Cursor = CursorType.Default;
|
||||||
|
|
||||||
// Check if no move has been made at all
|
// Check if no move has been made at all
|
||||||
if (Vector2.Distance(ref location, ref _rightMouseDownPos) < 3.0f)
|
if (Vector2.Distance(ref location, ref _rightMouseDownPos) < 2.0f)
|
||||||
{
|
{
|
||||||
var selectionCount = _editor.SelectionCount;
|
var selectionCount = _editor.SelectionCount;
|
||||||
var point = GetChildAt(location) as KeyframePoint;
|
var point = GetChildAt(location) as KeyframePoint;
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ namespace FlaxEditor.GUI
|
|||||||
Cursor = CursorType.Default;
|
Cursor = CursorType.Default;
|
||||||
|
|
||||||
// Check if no move has been made at all
|
// Check if no move has been made at all
|
||||||
if (Vector2.Distance(ref location, ref _rightMouseDownPos) < 3.0f)
|
if (Vector2.Distance(ref location, ref _rightMouseDownPos) < 2.0f)
|
||||||
{
|
{
|
||||||
var selectionCount = _editor.SelectionCount;
|
var selectionCount = _editor.SelectionCount;
|
||||||
var point = GetChildAt(location) as KeyframePoint;
|
var point = GetChildAt(location) as KeyframePoint;
|
||||||
|
|||||||
Reference in New Issue
Block a user