summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2020-01-03 09:35:00 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2020-01-03 09:35:00 +0800
commite539b187a5add6951b25b07c9c22826cc8be6b1a (patch)
tree70c7538ed1c55250b1f68b5324afd65e9f0fdae8
parent71d372a8ab1ee972326f8bd333f510330b7b7204 (diff)
Clears button mask before activating menu item
-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 e6333a6179..87f17838cf 100644
--- a/scene/gui/popup_menu.cpp
+++ b/scene/gui/popup_menu.cpp
@@ -309,6 +309,7 @@ void PopupMenu::_gui_input(const Ref<InputEvent> &p_event) {
bool was_during_grabbed_click = during_grabbed_click;
during_grabbed_click = false;
+ initial_button_mask = 0;
int over = _get_mouse_over(b->get_position());