Skip to content

Commit

Permalink
Not tree-shake repaint function by compressors like terser
Browse files Browse the repository at this point in the history
Closes #1658
  • Loading branch information
alexzuza authored May 22, 2020
1 parent e02baa8 commit 541e6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default function AnimationStateManager() {

css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');

repaint(target); // repaint
this.forRepaintDummy = repaint(target); // repaint

css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));
css(target, 'transform', 'translate3d(0,0,0)');
Expand Down

0 comments on commit 541e6c3

Please sign in to comment.