Skip to content

Commit

Permalink
fix destroy pixirenderer interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
simiraaaa committed Aug 17, 2017
1 parent 1346e1e commit 0c0c253
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions phina.pixi.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ phina.pixi = {
init: function(options) {
options = (options || {}).$safe(phina.pixi.PixiRenderer.defaults);
this.pixiRenderer = PIXI.autoDetectRenderer(options.width, options.height, options);
this.pixiRenderer.plugins.interaction.destroy();
delete this.pixiRenderer.plugins.interaction;
},

/**
Expand Down
Loading

0 comments on commit 0c0c253

Please sign in to comment.