diff options
author | FelipeMatoba <magodocona@gmail.com> | 2021-12-09 16:44:56 -0300 |
---|---|---|
committer | FelipeMatoba <magodocona@gmail.com> | 2021-12-09 16:44:56 -0300 |
commit | 29178d35645341939e5406dd849dad073dc45c52 (patch) | |
tree | ba807ce7dadeecc72505a573490c5703350388d2 /scene/gui/popup_menu.cpp | |
parent | f0b5cd51b6b2a7e913a084010e3bfca4921db033 (diff) |
Increased time delay on selection when opening a popup
Diffstat (limited to 'scene/gui/popup_menu.cpp')
-rw-r--r-- | scene/gui/popup_menu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index 4e16111f99..4671626718 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -371,7 +371,7 @@ void PopupMenu::gui_input(const Ref<InputEvent> &p_event) { // Disable clicks under a time threshold to avoid selection right when opening the popup. uint64_t now = OS::get_singleton()->get_ticks_msec(); uint64_t diff = now - popup_time_msec; - if (diff < 100) { + if (diff < 150) { return; } |