You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by kf...@apache.org on 2017/07/10 04:05:51 UTC

[4/4] incubator-weex git commit: + [ios] update logic for animation

+ [ios] update logic for animation


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/7f247fc4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/7f247fc4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/7f247fc4

Branch: refs/heads/0.15-dev
Commit: 7f247fc4e51e754302dd001d38aa785ede7b7207
Parents: 72b1845
Author: 齐山 <su...@163.com>
Authored: Mon Jul 10 11:55:56 2017 +0800
Committer: 齐山 <su...@163.com>
Committed: Mon Jul 10 11:55:56 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7f247fc4/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
index 3f81c37..502cb31 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
@@ -361,7 +361,7 @@ WX_EXPORT_METHOD(@selector(transition:args:callback:))
         layer.frame = originFrame;
     }
     
-    if(WXFloatEqual(animation.duration, 0) || WXFloatLessThan(animation.duration, 0)){
+    if(!WXFloatGreaterThan(animation.duration, 0)){
         if([delegate respondsToSelector:@selector(applyTransform)]) {
             [delegate applyTransform];
         }