mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed a problem where modal loops could stop a mouse-up event.
This commit is contained in:
parent
5c77abb41e
commit
e9d160b545
1 changed files with 3 additions and 0 deletions
|
|
@ -166,6 +166,9 @@ public:
|
|||
buttonState = newButtonState; // must change this before calling sendMouseUp, in case it runs a modal loop
|
||||
|
||||
sendMouseUp (current, screenPos + unboundedMouseOffset, time, oldMods);
|
||||
|
||||
if (lastCounter != mouseEventCounter)
|
||||
return true; // if a modal loop happened, then newButtonState is no longer valid.
|
||||
}
|
||||
|
||||
enableUnboundedMouseMovement (false, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue