Fix cursor lock panic

This commit is contained in:
Lauri Räsänen 2023-01-28 13:22:14 +02:00
parent 4863b7a09d
commit da94a2220c

View file

@ -31,8 +31,6 @@ pub async fn run() {
.expect("Couldn't append canvas to document body."); .expect("Couldn't append canvas to document body.");
} }
lock_cursor(&window, true);
let mut state = State::new(&window).await; let mut state = State::new(&window).await;
let mut last_render = instant::Instant::now(); let mut last_render = instant::Instant::now();
let mut is_focused = true; let mut is_focused = true;