Use EventLoopExtWebSys::spawn in bevy_winit #6667
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Feature
A new feature, making something new possible
O-Web
Specific to web (WASM) builds
See rust-windowing/winit#1714 for the relevant discussion, but the TLDR is that
EventLoopExtWebSys::spawn
provides a work around for the hack of using an exception to get the event loop working on the web platform.rust-windowing/winit#2208 is included in winit 0.27.0 which is included in Bevy 0.9, however, bevy_winit is current not using this feature.
Other related issues: rust-windowing/winit#900 rust-windowing/winit#1199
The text was updated successfully, but these errors were encountered: