We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c48487a commit acab83eCopy full SHA for acab83e
spine-ts/spine-core/src/AnimationState.ts
@@ -1026,7 +1026,8 @@ export class TrackEntry {
1026
if (duration === 0) return this.animationStart;
1027
return (this.trackTime % duration) + this.animationStart;
1028
}
1029
- return Math.min(this.trackTime + this.animationStart, this.animationEnd);
+ const animationTime = this.trackTime + this.animationStart;
1030
+ return this.animationEnd >= this.animation!.duration ? animationTime : Math.min(animationTime, this.animationEnd);
1031
1032
1033
setAnimationLast (animationLast: number) {
0 commit comments