aboutsummaryrefslogtreecommitdiff
path: root/src/pane.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-03 02:03:14 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-03 02:03:44 +0300
commitb695d7cbc0d29540993642c23b3d5798cbf9f7dc (patch)
treed7243c891dca6c8991583edd7666ec9fe8cc6f94 /src/pane.rs
parentdaf636fef7fd68bcb1e30cfb155883c3b831513c (diff)
fix: forward any-motion pane mouse events
refs #419
Diffstat (limited to 'src/pane.rs')
-rw-r--r--src/pane.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pane.rs b/src/pane.rs
index 7ab069bc..4611b315 100644
--- a/src/pane.rs
+++ b/src/pane.rs
@@ -1900,6 +1900,17 @@ impl PaneRuntime {
.encode_mouse_button(kind, column, row, modifiers)
}
+ pub fn encode_mouse_motion(
+ &self,
+ kind: crossterm::event::MouseEventKind,
+ column: u16,
+ row: u16,
+ modifiers: crossterm::event::KeyModifiers,
+ ) -> Option<Vec<u8>> {
+ self.terminal
+ .encode_mouse_motion(kind, column, row, modifiers)
+ }
+
pub fn encode_mouse_wheel(
&self,
kind: crossterm::event::MouseEventKind,