Fix regression in touch input handling.

This commit is contained in:
Relintai 2022-12-12 14:26:54 +01:00
parent e400bc3b48
commit 37961b1990

View File

@ -2250,10 +2250,10 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
touch_event->set_position(pos);
_gui_call_input(over, touch_event);
set_input_as_handled();
gui.touch_focus.erase(touch_index);
return;
}
set_input_as_handled();
gui.touch_focus.erase(touch_index);
return;
}
}