-
Notifications
You must be signed in to change notification settings - Fork 2.2k
SDL_GetGlobalMouseState
and SDL_GetWindowPosition
inconsistency still present on Emscripten
#12770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
SDL_GetGlobalMouseState
and SDL_GetWindowPosition
still present on EmscriptenSDL_GetGlobalMouseState
and SDL_GetWindowPosition
inconsistency still present on Emscripten
A call to Calling The functions in SDL where this occurs:
If the canvas is moved outside of SDL, the window position won't be sync'd without explicitly calling |
Even with Is there a chance I am doing something wrong? How can I debug this and figure out what is the culprit? |
So, calling |
Follow up from #12667.
This still seems to be broken for me after merging both #12669 and #12575. The relative mouse position is reported incorrectly -- see this GIF:
https://i.imgur.com/sqBYbwe.mp4
This is my logic:
@Temdog007: my guess here is that
SDL_GetWindowPosition
is not returning the correct position of the canvas relative to the parent web page shell, but I might be incorrect.The text was updated successfully, but these errors were encountered: