From 489d402648c9513cac5f06881d0dd56b1568df3f Mon Sep 17 00:00:00 2001 From: Alexander Madyankin Date: Wed, 25 Jul 2018 14:17:58 +0600 Subject: [PATCH] Add tween value rounding to fix #349 --- tweener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweener.js b/tweener.js index 85bb2688..68393470 100644 --- a/tweener.js +++ b/tweener.js @@ -27,7 +27,7 @@ Tween.prototype._rafLoop = function() { } var tweenVal = easingTypes[easingType](elapsed, start, end, duration); - this._config.onFrame(tweenVal); + this._config.onFrame(Math.round(tweenVal)); requestAnimationFrame(this._rafLoop); };