new Phaser.Game({
callbacks: {
postBoot: function (game) {
game.domContainer.style.pointerEvents = 'none';
},
},
});
But you will need to set pointer-events: auto
on any HTML elements you want clickable.
new Phaser.Game({
callbacks: {
postBoot: function (game) {
game.domContainer.style.pointerEvents = 'none';
},
},
});
But you will need to set pointer-events: auto
on any HTML elements you want clickable.