I use tweenmax 1.20.2 to tween object in canvas. I use lagSmoothing to make sure the tween run when my tab is not active. but it doesn't work. It works with version 1.91.1.
here is my code:
window.addEventListener('blur', function () {
TweenLite.lagSmoothing(0);
}, false);
window.addEventListener('focus', function () {
TweenLite.lagSmoothing(1000, 16);
}, false);
How to run with tweenmax 1.20.2. Thanks