From 73950befca34527886f2b93e10d84a78583c220d Mon Sep 17 00:00:00 2001 From: Maicon Santana Date: Fri, 15 Aug 2025 10:57:44 +0100 Subject: [PATCH] Work around to fix mouse positioning on scaled window --- src/platforms/rcore_web.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c index 9156f1599..02aa54ee0 100644 --- a/src/platforms/rcore_web.c +++ b/src/platforms/rcore_web.c @@ -1824,6 +1824,8 @@ static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent * CORE.Window.screen.width = width; CORE.Window.screen.height = height; + glfwSetWindowSize(platform.handle, CORE.Window.screen.width, CORE.Window.screen.height); + // NOTE: Postprocessing texture is not scaled to new size return 0;