From 9a185892a2259f8d59888ab911ebc77f2d882cfe Mon Sep 17 00:00:00 2001 From: Matt Karl Date: Thu, 19 Dec 2024 09:19:45 -0500 Subject: [PATCH] fix: Remove ticker update on destroy --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 868a0bd..c5cc794 100644 --- a/src/index.ts +++ b/src/index.ts @@ -216,6 +216,8 @@ class MarqueeSelection extends Container */ public destroy() { + if (this.destroyed) return; + this.autoUpdate = false; this._topLine.destroy(); this._leftLine.destroy(); this._rightLine.destroy();