Enable forced frame updates in CPViewAnimator

This commit is contained in:
cacaodev
2017-03-02 10:30:07 +01:00
parent 184d63f7eb
commit fb2fe3eb63
2 changed files with 2 additions and 5 deletions
@@ -169,8 +169,6 @@ var _CPAnimationContextStack = nil,
{
[self stopFrameUpdaterWithIdentifier:objectId];
if ([anObject respondsToSelector:@selector(_setForceUpdates:)])
[anObject _setForceUpdates:YES];
}
if (animationCompletion)
@@ -179,9 +177,6 @@ var _CPAnimationContextStack = nil,
if (needsPeriodicFrameUpdates || animationCompletion)
[[CPRunLoop currentRunLoop] performSelectors];
if (needsPeriodicFrameUpdates && [anObject respondsToSelector:@selector(_setForceUpdates:)])
[anObject _setForceUpdates:NO];
if (_completionHandlerAgent)
_completionHandlerAgent.decrement();
};
+2
View File
@@ -63,7 +63,9 @@
{
var handler = function()
{
[_target _setForceUpdates:YES];
[_target performSelector:aSelector withObject:aTargetValue];
[_target _setForceUpdates:NO];
};
[self _setTargetValue:aTargetValue withKeyPath:aKeyPath fallback:handler completion:handler];