リビジョン | 7d1c004c8114b918978ee730f50a5a4798c85908 (tree) |
---|---|
日時 | 2016-12-23 20:57:18 |
作者 | itozyun <itozyun@user...> |
コミッター | itozyun |
Fix the bug of X.NodeAnime.
@@ -525,7 +525,7 @@ function X_NodeAnime_updatePosition( xnode, obj, ratio, useGPU ){ | ||
525 | 525 | |
526 | 526 | //console.log( 'updatePosition x:' + x + ' gpu:' + !!useGPU ); |
527 | 527 | if( obj.transform ){ |
528 | - if( ( x === x || y === y ) && ( x !== 0 && y !== 0 ) ){ | |
528 | + if( ( x === x || y === y ) && ( x !== 0 || y !== 0 ) ){ | |
529 | 529 | if( X_UA[ 'Safari' ] && X_UA[ 'Windows' ] ){ |
530 | 530 | // http://shinimae.hatenablog.com/entry/2016/01/13/151748 |
531 | 531 | str = ' -webkit-translate(' + ( x | 0 ) + 'px,' + ( y | 0 ) + 'px)'; |
@@ -538,7 +538,9 @@ function X_NodeAnime_updatePosition( xnode, obj, ratio, useGPU ){ | ||
538 | 538 | if( skewY < 0 || 0 < skewY ) str += ' skewY(' + skewY + 'deg)'; |
539 | 539 | if( scaleX < 1 || 1 < scaleX ) str += ' scaleX(' + scaleX + ')'; |
540 | 540 | if( scaleY < 1 || 1 < scaleY ) str += ' scaleY(' + scaleY + ')'; |
541 | + | |
541 | 542 | xnode[ 'css' ]( 'transform', ( str ? str.substr( 1 ) : '' ) + ( useGPU ? X_NodeAnime_translateZ : '' ) ); |
543 | + console.log( xnode.className() + ' ' + str + ' ' + (xnode[ '_flags' ] & X_NodeFlags_DIRTY_CSS) ); | |
542 | 544 | |
543 | 545 | if( X_NodeAnime_translateZ ){ |
544 | 546 | if( useGPU ){ |