From a125b5d668df5cc1444f9bea923e262ab5a38422 Mon Sep 17 00:00:00 2001 From: Mathieu Hermann Date: Wed, 1 Jan 2025 21:38:30 +0100 Subject: [PATCH] refactor(touch-manager): WIP try improving multi-touch behavior --- src/app/game/game.ts | 3 +-- src/app/game/utils/touch-manager.ts | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/game/game.ts b/src/app/game/game.ts index 17eea63..31b613e 100644 --- a/src/app/game/game.ts +++ b/src/app/game/game.ts @@ -87,8 +87,7 @@ export class Game extends Engine { canvasElementId: 'game', suppressConsoleBootMessage: true, antialiasing: true, - suppressHiDPIScaling: true, - pointerScope: PointerScope.Document + suppressHiDPIScaling: true }); this.raceConfig = raceConfig; diff --git a/src/app/game/utils/touch-manager.ts b/src/app/game/utils/touch-manager.ts index d18e025..40b5bbb 100644 --- a/src/app/game/utils/touch-manager.ts +++ b/src/app/game/utils/touch-manager.ts @@ -5,9 +5,6 @@ export class TouchManager { private engine: Engine; public isTouching = false; - // public isTouchingBack = false; - // public isTouchingLeft = false; - // public isTouchingRight = false; constructor(engine: Engine) { this.engine = engine;