1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules/juce_gui_basics/menus
reuk 8ccea668e4
PopupMenu: Adjust mouse interactions so that menu is only dismissed on mouseUp if the mouse has moved
Previously, MouseSourceState::checkButtonState would trigger a menu item
if the MouseSourceState had observed the mouse button transition from
pressed to released while over an item, after more than 250ms had
elapsed since creating the menu window. In situations where the main
thread was very busy, this timeout could sometimes be reached inside the
same mouse click/release gesture. If the menu was created inside a
mouse-down, then simply tapping the mouse could sometimes trigger an
item from the menu as soon as the menu window appeared.

To help avoid accidentally triggering menu items, the menu window now
prevents any item from being triggered by the mouse until either the
mouse has been released once, or the mouse has moved. Put another way,
if the mouse is initially pressed when the menu is shown, it cannot
trigger a menu item unless the mouse is moved before it is released.
2024-10-20 22:59:40 +01:00
..
juce_BurgerMenuComponent.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_BurgerMenuComponent.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_MenuBarComponent.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_MenuBarComponent.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_MenuBarModel.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_MenuBarModel.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_PopupMenu.cpp PopupMenu: Adjust mouse interactions so that menu is only dismissed on mouseUp if the mouse has moved 2024-10-20 22:59:40 +01:00
juce_PopupMenu.h Update licensing information 2024-04-16 11:39:35 +01:00