summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-08-12 19:35:02 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-08-12 19:35:20 +0300
commit7f6c14522cf6e7f6050b8971f05811f564347bd8 (patch)
tree1e6b4d2c45b64fcb3ca2e9ebc0da964475df41e3 /scene
parent39fc116c5fed3a434aa35087a87d58d518b1033a (diff)
downloadredot-engine-7f6c14522cf6e7f6050b8971f05811f564347bd8.tar.gz
Stop popup release timeout on click.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/popup_menu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp
index 443fe4774a..86b0165754 100644
--- a/scene/gui/popup_menu.cpp
+++ b/scene/gui/popup_menu.cpp
@@ -589,6 +589,7 @@ void PopupMenu::_input_from_window_internal(const Ref<InputEvent> &p_event) {
// This allows for opening the popup and triggering an action in a single mouse click.
if (button_idx == MouseButton::LEFT || initial_button_mask.has_flag(mouse_button_to_mask(button_idx))) {
if (b->is_pressed()) {
+ during_grabbed_click = false;
is_scrolling = is_layout_rtl() ? b->get_position().x < item_clickable_area.position.x : b->get_position().x > item_clickable_area.size.width;
if (!item_clickable_area.has_point(b->get_position())) {