Increased time delay on selection when opening a popup
This commit is contained in:
parent
f0b5cd51b6
commit
29178d3564
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue