Skip to content

Commit 2e652bb

Browse files
authored
Merge pull request #5115 from maiconpintoabreu/web_resizable_window_mouse_issue
[rcore][web] Work around to fix mouse positioning on scaled window
2 parents 5236b24 + 73950be commit 2e652bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platforms/rcore_web.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,8 @@ static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent *
18221822
CORE.Window.screen.width = width;
18231823
CORE.Window.screen.height = height;
18241824

1825+
glfwSetWindowSize(platform.handle, CORE.Window.screen.width, CORE.Window.screen.height);
1826+
18251827
// NOTE: Postprocessing texture is not scaled to new size
18261828

18271829
return 0;

0 commit comments

Comments
 (0)