Skip to content

Commit ff5a505

Browse files
authored
Fix: Remove from active animations when reverse stopMethod is complete (#339)
#318 - After stopMethod 'reverse' is done it is removed from animations. Also the animation loops in its entirety not only the reverse part when loop is true.
2 parents 7ee168e + 3d5c8fc commit ff5a505

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/animations/CoreAnimationController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export class CoreAnimationController
119119
const { loop, stopMethod } = this.animation.settings;
120120

121121
if (stopMethod === 'reverse') {
122+
this.animation.once('finished', this.onFinished);
122123
this.animation.reverse();
123124
return;
124125
}

0 commit comments

Comments
 (0)