You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, it is all in the title. Every tween has a then method to wait for a promise. If the tween has a duration of zero the promise is not resolved. That can't be right, can it?
I've also encountered that case. Imagine you have a variable holding animation duration, if the animation should be instant you just set the duration to 0. Of course you could always make an if and return regular Promise.resolve() in that case but that is counter-intuitive and unnecessary complicates the API call.
It would be just another workaround and not optimal one. To clearly illustrate the case here is the exact code and workaround needed for the current behaviour.
Well, it is all in the title. Every tween has a then method to wait for a promise. If the tween has a duration of zero the promise is not resolved. That can't be right, can it?
Here is a quick pen: https://codepen.io/benwick83/pen/OJeEmmV
The text was updated successfully, but these errors were encountered: