Browse Source

Merge pull request #34770 from timothyqiu/layered

Clears initial button mask before activating menu item
Rémi Verschelde 5 years ago
parent
commit
2ee6f42759
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/popup_menu.cpp

+ 1 - 0
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;
 					bool was_during_grabbed_click = during_grabbed_click;
 					during_grabbed_click = false;
 					during_grabbed_click = false;
+					initial_button_mask = 0;
 
 
 					int over = _get_mouse_over(b->get_position());
 					int over = _get_mouse_over(b->get_position());