diff --git a/front/src/Phaser/UserInput/GameSceneUserInputHandler.ts b/front/src/Phaser/UserInput/GameSceneUserInputHandler.ts index b1d7cfd9..702977cd 100644 --- a/front/src/Phaser/UserInput/GameSceneUserInputHandler.ts +++ b/front/src/Phaser/UserInput/GameSceneUserInputHandler.ts @@ -19,6 +19,9 @@ export class GameSceneUserInputHandler implements UserInputHandlerInterface { } public handlePointerUpEvent(pointer: Phaser.Input.Pointer, gameObjects: Phaser.GameObjects.GameObject[]): void { + if (pointer.rightButtonReleased()) { + return; + } const camera = this.gameScene.getCameraManager().getCamera(); const index = this.gameScene .getGameMap() diff --git a/front/src/index.ts b/front/src/index.ts index a2064cd8..d3017ad2 100644 --- a/front/src/index.ts +++ b/front/src/index.ts @@ -102,6 +102,7 @@ const config: GameConfig = { dom: { createContainer: true, }, + disableContextMenu: true, render: { pixelArt: true, roundPixels: true,