Make `Animation.hasEnded()` true for `Animation.cancel()`