Skip to content

Commit

Permalink
TODO: Steal Evan's macros
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Mar 1, 2024
1 parent 17a4b63 commit 8fdeece
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ fn handle_event(tui: &mut Tui, event: Event, frame: Frame<'_>) -> miette::Result
.count()
.saturating_sub(1);

// TODO: Steal Evan's declarative key matching macros?
// https://github.com/evanrelf/indigo/blob/7a5e8e47291585cae03cdf5a7c47ad3bcd8db3e6/crates/indigo-tui/src/key/macros.rs
match event {
Event::Mouse(mouse) if mouse.kind == MouseEventKind::ScrollUp => {
tui.scroll_offset = tui.scroll_offset.saturating_sub(SCROLL_AMOUNT);
Expand Down

0 comments on commit 8fdeece

Please sign in to comment.