mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 04:46:48 +01:00
Fix node dragging not working when dock is moved
(cherry picked from commit b42bbca2666bb0b52156b8b396af54a1429c7077)
This commit is contained in:
parent
361b5b23f7
commit
7b02b1df64
@ -109,7 +109,7 @@ void SceneTreeDock::_input(Ref<InputEvent> p_event) {
|
|||||||
Ref<InputEventMouseButton> mb = p_event;
|
Ref<InputEventMouseButton> mb = p_event;
|
||||||
|
|
||||||
if (mb.is_valid() && (mb->get_button_index() == BUTTON_LEFT || mb->get_button_index() == BUTTON_RIGHT)) {
|
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;
|
tree_clicked = true;
|
||||||
} else if (!mb->is_pressed()) {
|
} else if (!mb->is_pressed()) {
|
||||||
tree_clicked = false;
|
tree_clicked = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user