Skip to content

Commit

Permalink
Fixed animation delay for auto-reversing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcheok committed Aug 30, 2014
1 parent 9d37c84 commit 026cbb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ - (void)scrollAwayWithInterval:(NSTimeInterval)interval delayAmount:(NSTimeInter
[CATransaction begin];

// Set Duration
[CATransaction setAnimationDuration:interval];
[CATransaction setAnimationDuration: 2.0 * (delayAmount + interval)];

// Create animation for gradient, if needed
if (self.fadeLength != 0.0f) {
CAKeyframeAnimation *gradAnim = [self keyFrameAnimationForGradientFadeLength:self.fadeLength
Expand Down

0 comments on commit 026cbb0

Please sign in to comment.