1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-05 17:15:09 +00:00

Add threshold to dragging nodes with select to prevent accidental drags

This commit is contained in:
fox
2021-06-04 11:39:46 -04:00
parent 766c6dbb24
commit 00a4ee5cf3
4 changed files with 36 additions and 15 deletions

View File

@@ -209,6 +209,7 @@ private:
DRAG_ANCHOR_BOTTOM_RIGHT,
DRAG_ANCHOR_BOTTOM_LEFT,
DRAG_ANCHOR_ALL,
DRAG_QUEUED,
DRAG_MOVE,
DRAG_MOVE_X,
DRAG_MOVE_Y,
@@ -384,6 +385,7 @@ private:
Control *top_ruler;
Control *left_ruler;
Point2 drag_start_origin;
DragType drag_type;
Point2 drag_from;
Point2 drag_to;