Fix game unfocusable after clicking on iframe

This commit is contained in:
Alexis Faizeau 2022-02-04 14:46:57 +01:00
parent 2232f7caf4
commit 6863fa3764
2 changed files with 5 additions and 9 deletions

View file

@ -26,15 +26,6 @@ export class Game extends Phaser.Game {
}
}
});
/*window.addEventListener('resize', (event) => {
// Let's trigger the onResize method of any active scene that is a ResizableScene
for (const scene of this.scene.getScenes(true)) {
if (scene instanceof ResizableScene) {
scene.onResize(event);
}
}
});*/
}
public step(time: number, delta: number) {