From 7c9c5bfa382df49bc2589746f7cc13cf15627f68 Mon Sep 17 00:00:00 2001 From: DjMisterJon <24865815+djmisterjon@users.noreply.github.com> Date: Sun, 21 Oct 2018 13:30:08 -0400 Subject: [PATCH] fix loopsCount listener loopsCount are alway 0 --- src/core/AnimationState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/AnimationState.ts b/src/core/AnimationState.ts index 1f155cbb..a6c3da37 100644 --- a/src/core/AnimationState.ts +++ b/src/core/AnimationState.ts @@ -754,7 +754,7 @@ namespace pixi_spine.core { } loopsCount() { - return Math.floor(this.trackTime / this.trackEnd); + return ~~(this.trackTime / this.animationLast); } }