fixed: some mouse events were not propagated when sheets are open (#2603)

* fixed: mouse dragged was not propagated to parent window when sheet was opened

* better detection for attached sheet
This commit is contained in:
daboe01 authored and cacaodev committed 2018-05-29 07:17:41 +02:00
1 parent 2ca99ba669
commit ad756a5b86
1 file changed
+1 -5
+1 -5
View File
@@ -1851,16 +1851,12 @@ CPTexturedBackgroundWindowMask
// CPLeftMouseDown is needed for window moving and resizing to work.
// CPMouseMoved is needed for rollover effects on title bar buttons.
if (sheet)
if (sheet && _sheetContext["isAttached"])
{
switch (type)
{
case CPLeftMouseDown:
// This is needed when a doubleClick occurs when the sheet is closing or opening
if (!_parentWindow)
return;
[_windowView mouseDown:anEvent];
// -dw- if the window is clicked, the sheet should come to front, and become key,