1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Prevent accidental drags by adding drag distance threshold

Co-authored-by: fox <12120644+foxydevloper@users.noreply.github.com>
This commit is contained in:
Hugo Locurcio
2021-07-16 06:03:09 +02:00
parent 08d517243c
commit 44b01751e6
4 changed files with 37 additions and 15 deletions

View File

@@ -357,6 +357,7 @@ private:
Vector3 orig_gizmo_pos;
int edited_gizmo;
Point2 mouse_pos;
Point2 original_mouse_pos;
bool snap;
Ref<EditorSpatialGizmo> gizmo;
int gizmo_handle;