Disable the mouse capture in the demo to allow scrolling to work (#514)

This commit is contained in:
octotep 2020-11-22 07:52:48 -05:00 committed by GitHub
parent e5d3959119
commit 6980fce8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
use crossterm::{ use crossterm::{
cursor::position, cursor::position,
event::{read, EnableMouseCapture, Event, KeyCode}, event::{read, DisableMouseCapture, EnableMouseCapture, Event, KeyCode},
execute, Result, execute, Result,
}; };
use std::io::Write; use std::io::Write;
@ -28,6 +28,8 @@ where
} }
} }
execute!(w, DisableMouseCapture)?;
Ok(()) Ok(())
} }