Add ctrl+mousewheel zoom control for fill-screen mode (#94)

* Add ctrl+mousewheel zoom control for fill-screen mode

  Enables mouse-based zooming; Uses ctrl+scroll up/down to
  increase/decrease zoom level while in fill-screen mode, with proper
  mouse capture handling.

* removed unused include
This commit is contained in:
Per Hurtig
2025-08-21 04:57:55 +02:00
committed by GitHub
parent 7064be32f2
commit 8b03329bba
2 changed files with 34 additions and 15 deletions
+4 -2
View File
@@ -239,7 +239,8 @@ async fn main() -> Result<(), WrappedErr> {
execute!(
term.backend_mut(),
EnterAlternateScreen,
crossterm::cursor::Hide
crossterm::cursor::Hide,
crossterm::event::EnableMouseCapture
)
.map_err(|e| {
WrappedErr(
@@ -307,7 +308,8 @@ async fn main() -> Result<(), WrappedErr> {
execute!(
term.backend_mut(),
LeaveAlternateScreen,
crossterm::cursor::Show
crossterm::cursor::Show,
crossterm::event::DisableMouseCapture
)
.unwrap();
disable_raw_mode().unwrap();