-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
findCanvasEventTarget doesn't use specialHTMLTargets #22942
Comments
It looks like this only effects @juj WDYT? I guess that fallback should simply be |
I like this patch for the return statement of findCanvasEventTargets but an explicit fallback could make sense too:
|
JoeOsborn
added a commit
to JoeOsborn/emscripten
that referenced
this issue
Nov 19, 2024
…ndEventTarget, and fix default canvas lookup bug
JoeOsborn
added a commit
to JoeOsborn/emscripten
that referenced
this issue
Nov 21, 2024
…ndEventTarget, and fix default canvas lookup bug
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please include the following in your bug report:
Version of emscripten/emsdk:
This line in
library_html5.js
:emscripten/src/library_html5.js
Line 366 in f0cc3d0
Seems like it should fall back to findEventTarget, not manual document querying/ID lookup. At a minimum, it should check
specialHTMLTargets[target]
as well as the other options.Right now, if you follow the docs and call your canvas e.g. "!canvas" in specialHTMLTargets, createContext seemingly won't be able to find it.
The text was updated successfully, but these errors were encountered: