Skip to content

Commit

Permalink
fix: Remove ticker update on destroy (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Dec 19, 2024
1 parent dcfb4f9 commit c925d1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c925d1b

Please sign in to comment.