Revision: 15040
http://sourceforge.net/p/skim-app/code/15040
Author: hofman
Date: 2025-03-29 15:51:44 +0000 (Sat, 29 Mar 2025)
Log Message:
-----------
only change item view frame when it changes
Modified Paths:
--------------
trunk/SKColorSwatch.m
Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m 2025-03-28 17:20:17 UTC (rev 15039)
+++ trunk/SKColorSwatch.m 2025-03-29 15:51:44 UTC (rev 15040)
@@ -287,7 +287,9 @@
- (void)updateItemViewFramesAnimating:(BOOL)animate {
[itemViews enumerateObjectsUsingBlock:^(SKColorSwatchItemView *itemView,
NSUInteger i, BOOL *stop){
- [animate ? [itemView animator] : itemView setFrame:[self
frameForItemViewAtIndex:i]];
+ NSRect rect = [self frameForItemViewAtIndex:i];
+ if (NSEqualRects(rect, [itemView frame]) == NO)
+ [animate ? [itemView animator] : itemView setFrame:rect];
}];
}
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