mirror of
https://github.com/webmproject/libwebp.git
synced 2026-01-11 14:46:19 +01:00
after:24d7f9cbSwitch code to SDL2. fixes: webp_wasm.js:1 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener') at Object.registerOrRemoveHandler (webp_wasm.js:1:101330) at registerMouseEventCallback (webp_wasm.js:1:154227) at _emscripten_set_mousemove_callback_on_thread (webp_wasm.js:1:155015) ... The SDL2 port forces the canvas id to '#canvas':324df6865a/src/video/emscripten/SDL_emscriptenvideo.c (L210)This change maps '#output_canvas' to this entry in specialHTMLTargets[]: https://emscripten.org/docs/api_reference/html5.h.html https://github.com/libsdl-org/SDL/issues/5260 & https://github.com/emscripten-ports/SDL2/issues/130 may also be related. Change-Id: I26f4aa22b9d68b0fc45b83edfe6fe074b59a82a7 Test: emscripten 3.1.16
2.1 KiB
2.1 KiB