Closed charliematters closed 8 years ago
Eeeeh, you're right. Sorry for the trouble.
I don't think the tween-functions library should have its functions changed. A duration of 0 is ambiguous for a simple easing function.
I've pushed a change in this lib instead, where a duration of 0 will jump you to the end, as expected.
I'm having some issues with cancelling a running transition with
{duration:0, stackBehavior: DESTRUCTIVE}
.After chasing it down, the problem is demonstrated by the following code:
This has a number of knock-on problems which I now have to add guards for.
Is it worth adding divide-by-zero protection to the functions?