Skip to content

Commit 6ef465a

Browse files
committed
Animation.yoyo was ignored when calculating the next frame to advance to, breaking the yoyo effect. It now yoyos properly
1 parent f410dc3 commit 6ef465a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ TODO
3030
* WebAudioSoundManager.unlock will now check if `document.body` is available before setting the listeners on it. Fixes old versions of Firefox, apparently. #3649 (thanks @squilibob)
3131
* Utils.Array.BringToTop failed to move the penultimate item in an array due to an index error. Fix #3658 (thanks @agar3s)
3232
* The Headless renderer was broken due to an invalid access during TextureSource.init.
33+
* Animation.yoyo was ignored when calculating the next frame to advance to, breaking the yoyo effect. It now yoyos properly (thanks Tomas)
3334

3435
### Examples, Documentation and TypeScript
3536

src/animations/Animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ var Animation = new Class({
575575
// We're at the end of the animation
576576

577577
// Yoyo? (happens before repeat)
578-
if (component.yoyo)
578+
if (component._yoyo)
579579
{
580580
component.forward = false;
581581

0 commit comments

Comments
 (0)