Permalink
Browse files

The start and end of the animation to not show the text anymore.

IMHO this looks cleaner.
  • Loading branch information...
1 parent 99ace56 commit 528e81f91db31684998273e42fd89fd5741ba005 Jan Weiß committed Jun 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ScrollingAboutWindow/AboutWindowController.m
@@ -142,7 +142,7 @@ - (void)startCreditsScrollAnimation {
if (!self.isCreditsAnimationActive) return;
[self startCreditsScrollAnimation];
}];
- creditsLayer.position = CGPointMake(0.0, viewHeight - fadeCompensation);
+ creditsLayer.position = CGPointMake(0.0, viewHeight + fadeCompensation);
[CATransaction commit];
}
@@ -158,12 +158,12 @@ - (void)resetCreditsScrollPosition {
[CATransaction begin];
[CATransaction setAnimationDuration:0.0];
- creditsLayer.position = CGPointMake(0.0, -textHeight + fadeCompensation);
+ creditsLayer.position = CGPointMake(0.0, -textHeight - fadeCompensation);
[CATransaction commit];
}
- (CGFloat)creditsFadeHeightCompensation {
- return self.creditsTopFadeLayer.frame.size.height - 2.0;
+ return self.creditsTopFadeLayer.frame.size.height;
}
#pragma mark - Core Animation layers

0 comments on commit 528e81f

Please sign in to comment.