Merge pull request #49241 from floppyhammer/fix-tree-item-dragging
Make tree item dragging not affected by touch dragging
This commit is contained in:
commit
cb4635f260
@ -3106,7 +3106,7 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
|
|||||||
drag_accum = 0;
|
drag_accum = 0;
|
||||||
//last_drag_accum=0;
|
//last_drag_accum=0;
|
||||||
drag_from = v_scroll->get_value();
|
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;
|
drag_touching_deaccel = false;
|
||||||
if (drag_touching) {
|
if (drag_touching) {
|
||||||
set_physics_process_internal(true);
|
set_physics_process_internal(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user