mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
![]() When called from inside some winit event handler, we'd go straight to `with_window_target` to get hold of the event proxy and send it. However when called through some external event handler (DOM), the scoped CURRENT_WINDOW_TARGET would not be set and MAYBE_LOOP_INSTANCE would also be empty because `run` takes it. So instead we'd end up creating an new event loop instance and the event would sit in there forever. Instead, this change brings WASM in line with the other platforms by using the dedicated event loop proxy (global_proxy). Because of the lack of threading the dance of storage for that is a little different though. |
||
---|---|---|
.. | ||
default | ||
gl | ||
mcu | ||
qt | ||
testing |