From 65db9ac60252bf87fd726df94e896bb6401ce4ce Mon Sep 17 00:00:00 2001 From: Charles Powell Date: Sat, 30 Aug 2014 09:38:23 -0700 Subject: [PATCH] Corrected CATransaction duration for continuous type. --- MarqueeLabel.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MarqueeLabel.m b/MarqueeLabel.m index 7f25f413..2f02d39f 100755 --- a/MarqueeLabel.m +++ b/MarqueeLabel.m @@ -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) { @@ -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) {