pass events
This commit is contained in:
parent
6e9f273776
commit
95f27171f8
|
@ -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)));
|
||||
|
||||
|
|
Loading…
Reference in New Issue