Revision: 28652
http://sourceforge.net/p/bibdesk/svn/28652
Author: hofman
Date: 2024-01-22 23:38:38 +0000 (Mon, 22 Jan 2024)
Log Message:
-----------
Don't reanimate page arrows when maintaining the same arrowed icon
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2024-01-22
17:12:03 UTC (rev 28651)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2024-01-22
23:38:38 UTC (rev 28652)
@@ -3074,7 +3074,8 @@
if ([anIcon pageCount] > 1) {
if (_arrowAlpha > 0.0) {
- _arrowAlpha = 0.0;
+ if (anIcon != [_leftArrow representedObject])
+ _arrowAlpha = 0.0;
// make sure we redraw whatever area previously had the arrows
[self setNeedsDisplayInRect:NSUnionRect(_leftArrowFrame,
_rightArrowFrame)];
}
@@ -3097,12 +3098,14 @@
// set enabled states
[self _updateButtonsForIcon:anIcon];
[self _setNeedsDisplayForIconInRow:r column:c];
-
- [NSAnimationContext runAnimationGroup:^(NSAnimationContext
*context){
- [context setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
- [context setDuration:0.3];
- [[self animator] setArrowAlpha:1.0];
- } completionHandler:^{}];
+
+ if (_arrowAlpha < 1.0) {
+ [NSAnimationContext runAnimationGroup:^(NSAnimationContext
*context){
+ [context setTimingFunction:[CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
+ [context setDuration:0.3];
+ [[self animator] setArrowAlpha:1.0];
+ } completionHandler:^{}];
+ }
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit