• R/O
  • HTTP
  • SSH
  • HTTPS

clientJs: Commit

クライアント側 js 開発用


Commit MetaInfo

Révision7d1c004c8114b918978ee730f50a5a4798c85908 (tree)
l'heure2016-12-23 20:57:18
Auteuritozyun <itozyun@user...>
Commiteritozyun

Message de Log

Fix the bug of X.NodeAnime.

Change Summary

Modification

--- a/0.6.x/js/02_dom/10_XNodeAnime.js
+++ b/0.6.x/js/02_dom/10_XNodeAnime.js
@@ -525,7 +525,7 @@ function X_NodeAnime_updatePosition( xnode, obj, ratio, useGPU ){
525525
526526 //console.log( 'updatePosition x:' + x + ' gpu:' + !!useGPU );
527527 if( obj.transform ){
528- if( ( x === x || y === y ) && ( x !== 0 && y !== 0 ) ){
528+ if( ( x === x || y === y ) && ( x !== 0 || y !== 0 ) ){
529529 if( X_UA[ 'Safari' ] && X_UA[ 'Windows' ] ){
530530 // http://shinimae.hatenablog.com/entry/2016/01/13/151748
531531 str = ' -webkit-translate(' + ( x | 0 ) + 'px,' + ( y | 0 ) + 'px)';
@@ -538,7 +538,9 @@ function X_NodeAnime_updatePosition( xnode, obj, ratio, useGPU ){
538538 if( skewY < 0 || 0 < skewY ) str += ' skewY(' + skewY + 'deg)';
539539 if( scaleX < 1 || 1 < scaleX ) str += ' scaleX(' + scaleX + ')';
540540 if( scaleY < 1 || 1 < scaleY ) str += ' scaleY(' + scaleY + ')';
541+
541542 xnode[ 'css' ]( 'transform', ( str ? str.substr( 1 ) : '' ) + ( useGPU ? X_NodeAnime_translateZ : '' ) );
543+ console.log( xnode.className() + ' ' + str + ' ' + (xnode[ '_flags' ] & X_NodeFlags_DIRTY_CSS) );
542544
543545 if( X_NodeAnime_translateZ ){
544546 if( useGPU ){
Afficher sur ancien navigateur de dépôt.