diff --git a/src/ui/containers/pokemon-info-container.ts b/src/ui/containers/pokemon-info-container.ts index 3b6e5bc2fc1..b98d83690f4 100644 --- a/src/ui/containers/pokemon-info-container.ts +++ b/src/ui/containers/pokemon-info-container.ts @@ -473,10 +473,15 @@ export class PokemonInfoContainer extends Phaser.GameObjects.Container { const xPosition = fromCatch ? this.initialX - this.infoWindowWidth - 67 : this.initialX - this.infoWindowWidth - ConfirmUiHandler.windowWidth; + + const infoTween = globalScene.tweens.getTweensOf(this)[0]; + const duration = Math.max(infoTween ? infoTween.duration - infoTween.elapsed : 0, 150); + infoTween?.destroy(); + return new Promise(resolve => { globalScene.tweens.add({ targets: this, - duration: fixedInt(Math.floor(150 / speedMultiplier)), + duration: fixedInt(Math.floor(duration / speedMultiplier)), ease: "Cubic.easeInOut", x: xPosition, onComplete: () => {