Merge pull request #3017 from daboe01/fixed-sheet-animation-click-issue

fixed: freeze when clicking during sheet animation
This commit is contained in:
cacaodev authored and GitHub committed 2022-03-05 18:12:27 +01:00
commit fb07def5fa
1 file changed
+5
+5
View File
@@ -1901,6 +1901,11 @@ CPTexturedBackgroundWindowMask
// CPLeftMouseDown is needed for window moving and resizing to work.
// CPMouseMoved is needed for rollover effects on title bar buttons.
// ignore events that happen during open / close animations
// not ignoring these would cause the app to freeze thereafter
if (sheet && (_sheetContext["isClosing"] || _sheetContext["isOpening"]))
return;
if (sheet && _sheetContext["isAttached"])
{
switch (type)