Liam Murphy
Liam Murphy
This should be fixed as of rustwasm/wasm-bindgen#3037.
> I tried this branch on my app and my app blows up in wgpu because I'm giving it a window with size of 0x0. Maybe we should we be...
I've put the `ResizeObserver` functionality behind a `css-size` feature, so that this can be used without everyone having to enable `cfg(web_sys_unstable_apis)`. I've noticed a bit of an issue, though -...
It was marked unstable because the spec is a 'Working Draft', which isn't technically a real spec yet. `web-sys` already has plenty of Working Drafts not marked unstable, though (e.g....
I've come up with a half-baked proposal for a slightly higher-level API for this. Basically, allow registering `EventListener`s, a trait which allows registering custom callbacks which produce events that get...
There are two ways I can think of to implement `Send + Sync` for `EventLoopProxy` on the web: - Pull in `wasm-bindgen-futures` and some async channel library as dependencies, and...
Okay, I've now implemented `Send + Sync` on the web as well using `wasm-bindgen-futures` and `async-channel`.
Using `SyncSender` here is a bit more problematic than I initially thought - if its buffer is full, calling `EventLoopProxy::send_event` will deadlock, which would be quite frustrating to debug. Also,...
Yes; if the wasm memory is backed by a `SharedArrayBuffer`, the bytes will have to be copied into a regular `ArrayBuffer` before passing to `new Blob()` (probably via. `Uint8Array::from`). It's...
The [`keyboard-types`](https://docs.rs/keyboard-types/0.6.1/keyboard_types/) crate already handles this; would it be a good idea to use that?