From 7b02b1df64037ddb38ee68bcbcff046551fc3ca3 Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 21 Jul 2022 23:57:52 +0200 Subject: [PATCH] Fix node dragging not working when dock is moved (cherry picked from commit b42bbca2666bb0b52156b8b396af54a1429c7077) --- editor/scene_tree_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 5c4160bb1..82df24604 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -109,7 +109,7 @@ void SceneTreeDock::_input(Ref p_event) { Ref mb = p_event; if (mb.is_valid() && (mb->get_button_index() == BUTTON_LEFT || mb->get_button_index() == BUTTON_RIGHT)) { - if (mb->is_pressed() && scene_tree->get_rect().has_point(mb->get_position())) { + if (mb->is_pressed() && scene_tree->get_rect().has_point(scene_tree->get_local_mouse_position())) { tree_clicked = true; } else if (!mb->is_pressed()) { tree_clicked = false;