1
0
Fork 0
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:
jules 2013-04-19 16:59:49 +01:00
parent 5c77abb41e
commit e9d160b545

View file

@ -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);