๐Ÿ“ฆ bevyengine / bevy

๐Ÿ“„ window-settings-wasm.patch ยท 17 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs
index ccc861a78..0cae580cd 100644
--- a/crates/bevy_window/src/window.rs
+++ b/crates/bevy_window/src/window.rs
@@ -293,9 +293,9 @@ impl Default for Window {
             transparent: false,
             focused: true,
             window_level: Default::default(),
-            fit_canvas_to_parent: false,
+            fit_canvas_to_parent: true,
             prevent_default_event_handling: true,
-            canvas: None,
+            canvas: Some("#bevy".to_owned()),
             window_theme: None,
             visible: true,
             skip_taskbar: false,