Merge pull request #14953 from poke1024/fix-toolbar-gesture

Hide tooltip on gesture input
This commit is contained in:
Noshyaar 2018-01-01 18:53:11 +07:00 committed by GitHub
commit 7d0212f4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2030,6 +2030,8 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
Ref<InputEventGesture> gesture_event = p_event;
if (gesture_event.is_valid()) {
_gui_cancel_tooltip();
Size2 pos = gesture_event->get_position();
Control *over = _gui_find_control(pos);