From d202cf68992c9dd1218133cf887731cdb2475d64 Mon Sep 17 00:00:00 2001 From: floppyhammer Date: Tue, 1 Jun 2021 20:46:17 +0800 Subject: [PATCH] fix-tree-item-dragging --- scene/gui/tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index d2b98eb0fa8..50e7ba97bcb 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -3106,7 +3106,7 @@ void Tree::_gui_input(Ref p_event) { drag_accum = 0; //last_drag_accum=0; drag_from = v_scroll->get_value(); - drag_touching = !DisplayServer::get_singleton()->screen_is_touchscreen(DisplayServer::get_singleton()->window_get_current_screen(get_viewport()->get_window_id())); + drag_touching = DisplayServer::get_singleton()->screen_is_touchscreen(DisplayServer::get_singleton()->window_get_current_screen(get_viewport()->get_window_id())); drag_touching_deaccel = false; if (drag_touching) { set_physics_process_internal(true);