From 7203f6e082839c6f399949f18e26a59c73e062a7 Mon Sep 17 00:00:00 2001 From: seo Date: Wed, 18 Feb 2015 09:45:44 -0500 Subject: [PATCH] Allows animations to be paused *now* Calls to _render will automatically enable pause, this wouldn't be an issue but the call to _render is called at some time in the future (especially if CADisplayLink is not configured). This patch allows you to use state.paused = true at creation time. By default, the animation will start in a non-paused state --- pop/POPAnimationInternal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pop/POPAnimationInternal.h b/pop/POPAnimationInternal.h index 1c0882c6..b6058ab5 100644 --- a/pop/POPAnimationInternal.h +++ b/pop/POPAnimationInternal.h @@ -247,7 +247,7 @@ struct _POPAnimationState progress(0), repeatCount(0), active(false), - paused(true), + paused(false), removedOnCompletion(true), delegateDidStart(false), delegateDidStop(false), @@ -323,7 +323,7 @@ struct _POPAnimationState // activate & unpause active = true; - setPaused(false); + //setPaused(false); // note start time startTime = lastTime = time;