Merge branch 'develop' of github.com:thecodingmachine/workadventure into develop

This commit is contained in:
Piotr 'pwh' Hanusiak 2022-04-04 14:52:53 +02:00
commit 715da87f7a

View File

@ -104,7 +104,6 @@ const config: GameConfig = {
dom: {
createContainer: true,
},
disableContextMenu: true,
render: {
pixelArt: true,
roundPixels: true,
@ -142,6 +141,14 @@ const game = new Game(config);
waScaleManager.setGame(game);
/*
TODO: replace with disableContextMenu when Phaser does not disable context menu on document.body
see https://github.com/photonstorm/phaser/issues/6064
*/
HtmlUtils.querySelectorOrFail("#game canvas").addEventListener("contextmenu", function (e) {
e.preventDefault();
});
window.addEventListener("resize", function (event) {
coWebsiteManager.resetStyleMain();