Skip to content

Commit 541e6c3

Browse files
authored
Not tree-shake repaint function by compressors like terser
Closes #1658
1 parent e02baa8 commit 541e6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default function AnimationStateManager() {
144144

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

147-
repaint(target); // repaint
147+
this.forRepaintDummy = repaint(target); // repaint
148148

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

0 commit comments

Comments
 (0)