summaryrefslogtreecommitdiff
path: root/editor/plugins/canvas_item_editor_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-27 09:16:16 +0100
committerGitHub <noreply@github.com>2021-11-27 09:16:16 +0100
commit52b7d5fa347fb88aa016e1e30414abd01e800381 (patch)
tree7fa57c2553b0de6ca23374d445c4c847dcb3641d /editor/plugins/canvas_item_editor_plugin.cpp
parente734a7a2d8919bc84ff721f969cb46403d0872d0 (diff)
parentcfacd9c057eb38ab0760374bd52905874b5b33ae (diff)
Merge pull request #55333 from pablodp606/fix-offset-drag
Fix offset in CanvasItem drag movement
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index a3378d1550..b6722b9d48 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -2339,7 +2339,7 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) {
if (selection2.size() > 0) {
drag_type = DRAG_MOVE;
- drag_from = click;
+ drag_from = drag_start_origin;
_save_canvas_item_state(drag_selection);
}
return true;