mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
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. |
||
|---|---|---|
| .. | ||
| juce_BurgerMenuComponent.cpp | ||
| juce_BurgerMenuComponent.h | ||
| juce_MenuBarComponent.cpp | ||
| juce_MenuBarComponent.h | ||
| juce_MenuBarModel.cpp | ||
| juce_MenuBarModel.h | ||
| juce_PopupMenu.cpp | ||
| juce_PopupMenu.h | ||