aboutsummaryrefslogtreecommitdiff
path: root/src/app/input
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-07-26 00:28:11 +0300
committerGitHub <noreply@github.com>2026-07-26 00:28:11 +0300
commit547aba8e0ab310623f1986d3026658f708d432bd (patch)
tree8b05ec9feec9a3c3c04f21aa308bf22faad3772a /src/app/input
parentb01fc37e66aac45c7fa9eccc826d793d68608a0a (diff)
fix: avoid renders for passive mouse motion (#1872)
refs #1865
Diffstat (limited to 'src/app/input')
-rw-r--r--src/app/input/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs
index a2e6597b..3d20adcd 100644
--- a/src/app/input/mod.rs
+++ b/src/app/input/mod.rs
@@ -464,7 +464,9 @@ impl App {
let Some(bytes) = bytes else {
return;
};
- rt.scroll_reset();
+ if !matches!(mouse.kind, MouseEventKind::Moved) {
+ rt.scroll_reset();
+ }
if let Err(err) = rt.try_send_bytes(Bytes::from(bytes)) {
warn!(err = %err, kind = ?mouse.kind, "failed to forward popup mouse event");
}