Disable the mouse capture in the demo to allow scrolling to work (#514)
This commit is contained in:
parent
e5d3959119
commit
6980fce8ec
@ -2,7 +2,7 @@
|
||||
|
||||
use crossterm::{
|
||||
cursor::position,
|
||||
event::{read, EnableMouseCapture, Event, KeyCode},
|
||||
event::{read, DisableMouseCapture, EnableMouseCapture, Event, KeyCode},
|
||||
execute, Result,
|
||||
};
|
||||
use std::io::Write;
|
||||
@ -28,6 +28,8 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
execute!(w, DisableMouseCapture)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user