summaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-09-23 16:10:27 +0200
committerCanop <cano.petrole@gmail.com>2022-09-23 16:11:10 +0200
commit109c57db154adbb005a5dc76804ee41bb72655ee (patch)
treead9081d444c3aa95979ccf6b59e4c58547b2bca6 /src/command
parent16bf48d6d960fd50d6a7108e2826d18a519de122 (diff)
wraps mouse wheel selection in tree
Selecting lines up or down with the mouse wheel now wraps in both direction (ie going up when your on top brings you to the bottom, and vice-versa)
Diffstat (limited to 'src/command')
-rw-r--r--src/command/panel_input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/panel_input.rs b/src/command/panel_input.rs
index df7bc70..604c34a 100644
--- a/src/command/panel_input.rs
+++ b/src/command/panel_input.rs
@@ -203,13 +203,13 @@ impl PanelInput {
}
MouseEventKind::ScrollDown => {
Command::Internal {
- internal: Internal::line_down_no_cycle,
+ internal: Internal::line_down,
input_invocation: None,
}
}
MouseEventKind::ScrollUp => {
Command::Internal {
- internal: Internal::line_up_no_cycle,
+ internal: Internal::line_up,
input_invocation: None,
}
}