fixed: freeze when clicking during sheet animation

previously, the app froze when clicking somewhere during sheet open/close animations.
these adversarial clicks are simply ignored by this PR
This commit is contained in:
daboe01 committed 2022-01-23 13:39:33 +01:00
1 parent 37756a5853
commit 76d52e07d4
1 file changed
+3
+3
View File
@@ -1901,6 +1901,9 @@ CPTexturedBackgroundWindowMask
// CPLeftMouseDown is needed for window moving and resizing to work.
// CPMouseMoved is needed for rollover effects on title bar buttons.
if (sheet && (_sheetContext["isClosing"] || _sheetContext["isOpening"]))
return;
if (sheet && _sheetContext["isAttached"])
{
switch (type)