Set touch input as handled only after _gui_call_input
This commit is contained in:
parent
0f10eafb38
commit
147de75e52
1 changed files with 2 additions and 2 deletions
|
@ -2329,8 +2329,8 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||||
}
|
}
|
||||||
touch_event->set_position(pos);
|
touch_event->set_position(pos);
|
||||||
_gui_call_input(over, touch_event);
|
_gui_call_input(over, touch_event);
|
||||||
|
set_input_as_handled();
|
||||||
}
|
}
|
||||||
set_input_as_handled();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -2346,8 +2346,8 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||||
touch_event->set_position(pos);
|
touch_event->set_position(pos);
|
||||||
|
|
||||||
_gui_call_input(over, touch_event);
|
_gui_call_input(over, touch_event);
|
||||||
|
set_input_as_handled();
|
||||||
}
|
}
|
||||||
set_input_as_handled();
|
|
||||||
gui.touch_focus.erase(touch_index);
|
gui.touch_focus.erase(touch_index);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue