Mouse handling is broken on HiDPI screens - with 2x scaling factor, you can only access the top-left quarter of the screen
You can fix this if you zoom out the webpage (for me it's control and scroll wheel down)
Thanks! I'm on it! This is SDL3 (still kinda experimental) on Emscripten (an estabilished absolute mess) but there must be a way to fix this.
Fixed! Fun fact: I had to DISABLE hiDPI support in SDL. Guess is bugged.
Are you sure you haven't forgot about multiplying the event coords by SDL_GetWindowPixelDensity?
SDL_GetWindowPixelDensity
Oooh! Didn't know about this. Neither SDL_GetGlobalMouseState nor SDL_MouseMotionEvent docs speak of no such thing. Anyways, it works now :P