pixi-ease icon indicating copy to clipboard operation
pixi-ease copied to clipboard

Update animation slice bug

Open Vardner opened this issue 5 years ago • 1 comments

When animation is completed and activates onComplete callback, which removes other animation array "list" and array this.easings becomes different. After that action list have an element which this.easing doesn't. After that coming splice with index -1 and removes wrong animation element

proofs after we delete element animation image and now we deleting index -1, so wrong element lost animation image

Vardner avatar Nov 14 '19 08:11 Vardner

are you deleting the easing within the update loop of another easing? this was a chicken-and-egg problem that i tried to solve by ensuring all easings run regardless of what happens within the update loop.

davidfig avatar Nov 15 '19 00:11 davidfig