summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorfloppyhammer <tannhauser_chen@outlook.com>2021-06-01 20:46:17 +0800
committerfloppyhammer <tannhauser_chen@outlook.com>2021-06-01 20:46:17 +0800
commitd202cf68992c9dd1218133cf887731cdb2475d64 (patch)
treecd2e97a4e75de9951e77ad93b8552c2fda49c26e /scene/gui
parent0286495f594bd926c9183811271de17ba3452725 (diff)
fix-tree-item-dragging
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index d2b98eb0fa..50e7ba97bc 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -3106,7 +3106,7 @@ void Tree::_gui_input(Ref<InputEvent> 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);