Revision: 13358
http://sourceforge.net/p/skim-app/code/13358
Author: hofman
Date: 2023-03-14 17:37:21 +0000 (Tue, 14 Mar 2023)
Log Message:
-----------
don't animate window resize for preference pane switch with reduced motion
Modified Paths:
--------------
trunk/SKPreferenceController.m
Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m 2023-03-13 17:43:03 UTC (rev 13357)
+++ trunk/SKPreferenceController.m 2023-03-14 17:37:21 UTC (rev 13358)
@@ -164,11 +164,14 @@
} else {
NSTimeInterval duration = fmax(0.25, [window
animationResizeTime:frame]);
[contentView displayIfNeeded];
+ if ([NSView shouldShowSlideAnimation] == NO)
+ [window setFrame:frame display:YES];
[NSAnimationContext runAnimationGroup:^(NSAnimationContext
*context){
[context setDuration:duration];
[[contentView animator] replaceSubview:oldView with:view];
[NSLayoutConstraint activateConstraints:constraints];
- [[window animator] setFrame:frame display:YES];
+ if ([NSView shouldShowSlideAnimation])
+ [[window animator] setFrame:frame display:YES];
}
completionHandler:^{}];
}
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