I think juce_MouseInputSource.cpp refactoring broke something, on draggable component with contextual menu:
(Win7-64 / Visual Studio 2008)
- 1: right click on the component to display the contextual menu.
- 2: left click on the same component to cancel contextual menu usage.
None of mouse buttons are down, but the component is dragged:
Component Image follow the mouse cursor and no click are possible (a kind of modal state)
Impossible do return to a non dragging state except by quitting application with keyboard shortcut.
If mouse was moved over an AlertWindow in this state, ComponentDragger::dragComponent assert at line 43:
- Code: Select all
jassert (e.mods.isAnyMouseButtonDown()); // The event has to be a drag event!
Not all draggable component with contextual menu have this issue, It's hard understand why.
Any Idea ?