summaryrefslogtreecommitdiffstats
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
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)
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/command/panel_input.rs4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e8e2ed8..6ae2c42 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
- `--sort-by-type-dirs-first` and `--sort-by-type-dirs-last` - Fix #602
- modal: in intput mode, uppercase letters don't trigger verbs anymore - Fix #604
- fix :line_down_no_cycle which was cycling
+- 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)
### v1.14.3 - 2022-09-12
<a name="v1.14.3"></a>
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,
}
}