We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 687eb9e commit f47ed34Copy full SHA for f47ed34
1 file changed
packages/webgal/src/Core/controller/stage/pixi/PixiController.ts
@@ -304,8 +304,11 @@ export default class PixiStage {
304
}
305
306
public removeAnimationByTargetKey(targetKey: string) {
307
- const index = this.stageAnimations.findIndex((e) => e.targetKey === targetKey);
308
- this.removeAnimationByIndex(index);
+ let index = this.stageAnimations.findIndex((e) => e.targetKey === targetKey);
+ while (index !== -1) {
309
+ this.removeAnimationByIndex(index);
310
+ index = this.stageAnimations.findIndex((e) => e.targetKey === targetKey);
311
+ }
312
313
314
public removeAnimationWithSetEffects(key: string) {
0 commit comments