Skip to content

Commit

Permalink
🐛 Fix Pause/Resume button in the game debugger's toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Dec 26, 2023
1 parent 39ecbe9 commit 3ee5cc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/riotTags/debugger/debugger-screen-embedded.tag
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ debugger-screen-embedded(class="{opts.class} {flexrow: verticalLayout, flexcol:
this.togglePause = () => {
this.refs.gameView.executeScript({
code: `
if (PIXI.Ticker.shared.started) {
PIXI.Ticker.shared.stop();
if (pixiApp.ticker.started) {
pixiApp.ticker.stop();
} else {
PIXI.Ticker.shared.start();
pixiApp.ticker.start();
}
!PIXI.Ticker.shared.started;
!pixiApp.ticker.started;
`,
mainWorld: true
}, paused => {
Expand Down

0 comments on commit 3ee5cc5

Please sign in to comment.