Closed blyszcz closed 5 years ago
If onComplete function will update during the animation, setTimeout callback will execute the one that it had in scope when setTimeout was declared. To fix this we need to update callback during animation time as well.
onComplete
setTimeout
thanks @blyszcz
If
onComplete
function will update during the animation, setTimeout callback will execute the one that it had in scope whensetTimeout
was declared. To fix this we need to update callback during animation time as well.