File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Source/DFPSR/implementation/gui Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,9 @@ void DsrWindow::sendMouseEvent(const MouseEvent& event) {
163
163
MouseEvent scaledEvent = event / this ->pixelScale ;
164
164
// Send the global event
165
165
this ->callback_windowMouseEvent (scaledEvent);
166
- if (this ->mainPanel ->getVisible () && this ->mainPanel ->pointIsInside (scaledEvent.position )) {
166
+ // To pass the event to the main panel, the panel has to be visible with the cursor inside of it,
167
+ // unless it is a drag move or button release in which the event should never be blocked.
168
+ if ((this ->mainPanel ->getVisible () && this ->mainPanel ->pointIsInside (scaledEvent.position )) || event.mouseEventType == MouseEventType::MouseUp || this ->mainPanel ->holdCount > 0 ) {
167
169
// In case of the root panel not covering the entire window, adjust input coordinates to the panel's local system.
168
170
scaledEvent.position -= this ->mainPanel ->location .upperLeft ();
169
171
// Send to the main panel and its components
You can’t perform that action at this time.
0 commit comments