You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.
Can you tell me why emscripten_set_mouseup_callback uses document as target, when emscripten_set_mousedown_callback takes data-> canvas_id as target. This may be a mistake.
In my case, this solution breaks the standard input behavior on the page, which is very strange.
Thanks in advance for your reply and sorry for my english :)
The text was updated successfully, but these errors were encountered:
It does that to handle pressing inside the canvas, moving outside of it then releasing. SDL expects to still get the mouse up event in that case. (b1060d9)
It should only prevent the default action if the mouse was inside though... (ed82ab1)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello.
Can you tell me why emscripten_set_mouseup_callback uses
document
as target, when emscripten_set_mousedown_callback takes data-> canvas_id as target. This may be a mistake.In my case, this solution breaks the standard input behavior on the page, which is very strange.
Thanks in advance for your reply and sorry for my english :)
The text was updated successfully, but these errors were encountered: