Skip to content

Commit

Permalink
Merge pull request #1834 from alexzuza/patch-1
Browse files Browse the repository at this point in the history
Not tree-shake repaint function by compressors like terser
  • Loading branch information
owen-m1 authored May 24, 2020
2 parents e02baa8 + 541e6c3 commit 88838bf
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 88838bf

Please sign in to comment.