Commit e6b0e671 by doszhang

dos

parent 988eec23
...@@ -754,10 +754,10 @@ ...@@ -754,10 +754,10 @@
translateY = (currentRect.top - toRect.top) / (scaleY || 1); translateY = (currentRect.top - toRect.top) / (scaleY || 1);
target.animatingX = !!translateX; target.animatingX = !!translateX;
target.animatingY = !!translateY; target.animatingY = !!translateY;
// css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)'); css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');
repaint(target); // repaint repaint(target); // repaint
css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : '')); // css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));
css(target, 'transform', 'translate3d(0,0,0)'); css(target, 'transform', 'translate3d(0,0,0)');
typeof target.animated === 'number' && clearTimeout(target.animated); typeof target.animated === 'number' && clearTimeout(target.animated);
target.animated = setTimeout(function () { target.animated = setTimeout(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment