Merge branch 'develop' of github.com:thecodingmachine/workadventure into develop
This commit is contained in:
commit
715da87f7a
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user