diff --git a/.github/workflows/build_web.yml b/.github/workflows/build_web.yml index 8c400d7d19e22..c70adeda0155d 100644 --- a/.github/workflows/build_web.yml +++ b/.github/workflows/build_web.yml @@ -29,7 +29,7 @@ jobs: uses: actions/cache@v3 with: path: cache - key: ${{ runner.os }}-cmakecache-${{ hashFiles('**/CMakeLists.txt') }} + key: web-cmakecache-${{ hashFiles('**/CMakeLists.txt') }} - name: 🐳 Inject /cache into docker uses: reproducible-containers/buildkit-cache-dance@v2.1.2 diff --git a/dist/web/source/wasm-config.js b/dist/web/source/wasm-config.js index a241bda0f339c..8e635cd0b7ed1 100644 --- a/dist/web/source/wasm-config.js +++ b/dist/web/source/wasm-config.js @@ -73,4 +73,10 @@ function js_resizeCanvas() { canvas.height = Math.min(document.documentElement.clientHeight, window.innerHeight || 0); canvas.classList.add("canvas_full_screen") + + if (GLFW.active && GLFW.active.windowPosFunc) { + getWasmTableEntry(GLFW.active.windowPosFunc)(GLFW.active.id, GLFW.active.x, GLFW.active.y); + } + + GLFW.onWindowSizeChanged(); } \ No newline at end of file