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::{
|
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(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user