Skip to content

Commit

Permalink
Fix rendering hook
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Feb 16, 2024
1 parent 9a8ba8b commit 91eb9e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@pixi/eslint-config"
}
15 changes: 2 additions & 13 deletions src/AnimatedGIF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ class AnimatedGIF extends Sprite
{
this.play();
}

this.onRender = () => this.updateFrame();
}

/** Stops the animation. */
Expand Down Expand Up @@ -419,19 +421,6 @@ class AnimatedGIF extends Sprite
this.dirty = false;
}

/**
* Renders the object using the WebGL renderer
*
* @param {PIXI.Renderer} renderer - The renderer
* @private
*/
// _render(renderer: Renderer): void
// {
// this.updateFrame();

// super._render(renderer);
// }

/**
* Whether to use PIXI.Ticker.shared to auto update animation time.
* @default true
Expand Down

0 comments on commit 91eb9e5

Please sign in to comment.