You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/07 06:21:53 UTC

[04/19] incubator-weex git commit: Update WXAnimationModule.m

Update WXAnimationModule.m

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

Branch: refs/heads/0.11-dev
Commit: 57c0622c0f876d1eabb1f0ccecfa48d5ae8cdd06
Parents: f1950d2
Author: acton393 <ac...@users.noreply.github.com>
Authored: Tue Feb 21 16:00:14 2017 +0800
Committer: GitHub <no...@github.com>
Committed: Tue Feb 21 16:00:14 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/57c0622c/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 9c469e1..723de09 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
@@ -134,10 +134,12 @@ WX_EXPORT_METHOD(@selector(transition:args:callback:))
                    I assume it's a bug in Core Animation.
                    Here comes the black magic: In the scale transformation, change the z parameter to anything different from 1.0, the jump is gone.
                    See http://stackoverflow.com/questions/27931421/cgaffinetransform-scale-and-translation-jump-before-animation
+                   
+                   if this make your view blur, you can specify the 'fixScale' option value 
                  **/
                 CGFloat sz = 1.00001;
                 if ([args[@"fixScale"] boolValue]) {
-                    sz = 1.0 + CGFLOAT_MIN;
+                    sz = 1.0;
                 }
                 layer.transform = CATransform3DScale(transform, 1, 1, sz);
             }