Merge pull request #49241 from floppyhammer/fix-tree-item-dragging

Make tree item dragging not affected by touch dragging
This commit is contained in:
Rémi Verschelde 2021-06-01 15:29:35 +02:00 committed by GitHub
commit cb4635f260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);