From 75cc7cbc4e9e8d0604d2c514aac37d520f85d13e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 1 Sep 2021 14:42:31 +0200 Subject: [PATCH] Adjust precision for context menu showing on curve/keyframes --- Source/Editor/GUI/CurveEditor.Contents.cs | 2 +- Source/Editor/GUI/Timeline/GUI/KeyframesEditor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/GUI/CurveEditor.Contents.cs b/Source/Editor/GUI/CurveEditor.Contents.cs index fc273269e..c74e727a4 100644 --- a/Source/Editor/GUI/CurveEditor.Contents.cs +++ b/Source/Editor/GUI/CurveEditor.Contents.cs @@ -443,7 +443,7 @@ namespace FlaxEditor.GUI Cursor = CursorType.Default; // 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 point = GetChildAt(location) as KeyframePoint; diff --git a/Source/Editor/GUI/Timeline/GUI/KeyframesEditor.cs b/Source/Editor/GUI/Timeline/GUI/KeyframesEditor.cs index db96d9b37..aa34657ee 100644 --- a/Source/Editor/GUI/Timeline/GUI/KeyframesEditor.cs +++ b/Source/Editor/GUI/Timeline/GUI/KeyframesEditor.cs @@ -394,7 +394,7 @@ namespace FlaxEditor.GUI Cursor = CursorType.Default; // 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 point = GetChildAt(location) as KeyframePoint;