Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] Remove specific animation by key instead of removing all. If we…
Browse files Browse the repository at this point in the history
… don' t remove, updating transform won't work after doing CAAnimation. http://dotwe.org/vue/ce7d8d3bd4e67d3fe321c9e8b0bbbb7b (#1734)
  • Loading branch information
wqyfavor authored and cxfeng1 committed Nov 10, 2018
1 parent c83cab1 commit 8c6b3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag
_animationInfo.target.view.layer.anchorPoint = _animationInfo.originAnchorPoint;
_animationInfo.target.view.layer.frame = originFrame;
}
[_animationInfo.target.layer removeAllAnimations];
[_animationInfo.target.layer removeAnimationForKey:_animationInfo.propertyName];

if (_finishBlock) {
_finishBlock(flag);
Expand Down

0 comments on commit 8c6b3e6

Please sign in to comment.