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

Commit fef4326

Browse files
wqyfavorwqyfavor
authored andcommitted
[iOS] Remove specific animation by key instead of removing all. If we don' t remove, updating transform won't work after doing CAAnimation. http://dotwe.org/vue/ce7d8d3bd4e67d3fe321c9e8b0bbbb7b (#1734)
1 parent 03e203d commit fef4326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag
123123
_animationInfo.target.view.layer.anchorPoint = _animationInfo.originAnchorPoint;
124124
_animationInfo.target.view.layer.frame = originFrame;
125125
}
126-
[_animationInfo.target.layer removeAllAnimations];
126+
[_animationInfo.target.layer removeAnimationForKey:_animationInfo.propertyName];
127127

128128
if (_finishBlock) {
129129
_finishBlock(flag);

0 commit comments

Comments
 (0)