pass events

This commit is contained in:
core 2023-11-07 14:39:34 -05:00
parent 6e9f273776
commit 95f27171f8
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ use winit::event::WindowEvent::KeyboardInput;
use winit::event_loop::{EventLoop, EventLoopWindowTarget};
use winit::keyboard::KeyCode;
use winit::window::WindowBuilder;
use winit::platform::web::{WindowExtWebSys, EventLoopExtWebSys};
use winit::platform::web::{WindowExtWebSys, WindowBuilderExtWebSys, EventLoopExtWebSys};
use crate::command::{exec, should_newline};
use crate::mode::Mode;
use crate::mode::Mode::Reflectivity;
@ -44,7 +44,7 @@ pub async fn __nxrd_browser_init(w: u32, h: u32) -> AbiScopeState {
info!("wgpu setup");
let event_loop = EventLoop::new().expect("event loop creation failed");
let window = WindowBuilder::new().build(&event_loop).unwrap();
let window = WindowBuilder::new().with_prevent_default(false).build(&event_loop).unwrap();
window.set_min_inner_size(Some(PhysicalSize::new(w, h)));