Skip to content

Commit

Permalink
Corrected CATransaction duration for continuous type.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Aug 30, 2014
1 parent 026cbb0 commit 65db9ac
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,7 +573,7 @@ - (void)scrollAwayWithInterval:(NSTimeInterval)interval delayAmount:(NSTimeInter
[CATransaction begin];

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

// Create animation for gradient, if needed
if (self.fadeLength != 0.0f) {
Expand Down Expand Up @@ -633,7 +633,7 @@ - (void)scrollContinuousWithInterval:(NSTimeInterval)interval after:(NSTimeInter
[CATransaction begin];

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

// Create animation for gradient, if needed
if (self.fadeLength != 0.0f) {
Expand Down

0 comments on commit 65db9ac

Please sign in to comment.