Revision: 15294
http://sourceforge.net/p/skim-app/code/15294
Author: hofman
Date: 2025-05-26 14:14:05 +0000 (Mon, 26 May 2025)
Log Message:
-----------
prevent fullscreen/presentation switching during animation
Modified Paths:
--------------
trunk/SKMainWindowController_FullScreen.m
Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m 2025-05-26 14:09:57 UTC (rev
15293)
+++ trunk/SKMainWindowController_FullScreen.m 2025-05-26 14:14:05 UTC (rev
15294)
@@ -283,6 +283,8 @@
if (activity == nil)
activity = [[NSProcessInfo processInfo]
beginActivityWithOptions:NSActivityUserInitiated |
NSActivityIdleDisplaySleepDisabled | NSActivityIdleSystemSleepDisabled
reason:@"Presentation"];
+ [touchBarController interactionModeChanged];
+
[NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {
[context setDuration:PRESENTATION_DURATION];
[context setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
@@ -314,8 +316,6 @@
[presentationView didOpen];
- [touchBarController interactionModeChanged];
-
mwcFlags.isSwitchingFullScreen = 0;
}];
}
@@ -415,8 +415,6 @@
[touchBarController interactionModeChanged];
- mwcFlags.isSwitchingFullScreen = 0;
-
[NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {
[context setDuration:PRESENTATION_DURATION];
[context setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
@@ -437,6 +435,8 @@
[presentationPreview close];
}
+ mwcFlags.isSwitchingFullScreen = 0;
+
if (mwcFlags.wantsPresentationOrFullScreen) {
mwcFlags.wantsPresentationOrFullScreen = 0;
[self enterFullscreen];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit