From 265f09ca1c7215c0abd381c41b3c8f7dad344ff1 Mon Sep 17 00:00:00 2001 From: "Sean S. LeBlanc" Date: Wed, 12 Jan 2022 13:20:34 -0500 Subject: [PATCH] fix(canvas replacement): mobile controls not working properly --- src/canvas replacement.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/canvas replacement.js b/src/canvas replacement.js index 6ab64a1c..8636abeb 100644 --- a/src/canvas replacement.js +++ b/src/canvas replacement.js @@ -60,6 +60,8 @@ export var hackOptions = { var glazy; after('startExportedGame', function () { glazy = new WebGLazy(hackOptions.glazyOptions); + document.querySelector('#canvasContainer').style.pointerEvents = 'none'; + document.querySelector('#touchTrigger').style.visibility = 'initial'; if (hackOptions.init) { hackOptions.init(glazy); }