From 3dad5a43a13b64af34e3a78e081ed336c0640db2 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 30 Dec 2025 19:11:33 +0100 Subject: [PATCH] web: Resize canvas right away --- dist/web/source/wasm-config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/web/source/wasm-config.js b/dist/web/source/wasm-config.js index 39a04ea8c..00dcba1d2 100644 --- a/dist/web/source/wasm-config.js +++ b/dist/web/source/wasm-config.js @@ -196,6 +196,8 @@ var Module = { e.preventDefault(); }, false); + js_resizeCanvas() + // Turn long touches into right-clicks let timer = null; canvas.addEventListener('touchstart', event => {