mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 09:29:38 +01:00
Ported: Set touch input as handled only after _gui_call_input - necrashter
147de75e52
This commit is contained in:
parent
5579d563bd
commit
8c9d7bc567
@ -2234,9 +2234,9 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||
}
|
||||
touch_event->set_position(pos);
|
||||
_gui_call_input(over, touch_event);
|
||||
set_input_as_handled();
|
||||
}
|
||||
|
||||
set_input_as_handled();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
@ -2254,11 +2254,12 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||
|
||||
_gui_call_input(over, touch_event);
|
||||
set_input_as_handled();
|
||||
}
|
||||
|
||||
gui.touch_focus.erase(touch_index);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ref<InputEventGesture> gesture_event = p_event;
|
||||
if (gesture_event.is_valid()) {
|
||||
|
Loading…
Reference in New Issue
Block a user