Skip to content

Commit

Permalink
wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
irate-devil committed Aug 5, 2022
1 parent 068a256 commit 3bcfbb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_winit/src/web_resize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ struct ResizeEvent {
window_id: WindowId,
}

#[derive(Resource)]
pub(crate) struct CanvasParentResizeEventChannel {
sender: Sender<ResizeEvent>,
receiver: Receiver<ResizeEvent>,
}

fn canvas_parent_resize_event_handler(
winit_windows: Res<WinitWindows>,
winit_windows: NonSend<WinitWindows>,
resize_events: Res<CanvasParentResizeEventChannel>,
) {
for event in resize_events.receiver.try_iter() {
Expand Down

0 comments on commit 3bcfbb2

Please sign in to comment.