From 541e6c3217eb847fbdf9f057aff8d345b9a14986 Mon Sep 17 00:00:00 2001 From: Alexey Zuev Date: Fri, 22 May 2020 08:19:21 +0400 Subject: [PATCH] Not tree-shake repaint function by compressors like terser Closes #1658 --- src/Animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Animation.js b/src/Animation.js index 194799147..6aa8e3ef8 100644 --- a/src/Animation.js +++ b/src/Animation.js @@ -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)');