From 547aba8e0ab310623f1986d3026658f708d432bd Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sun, 26 Jul 2026 00:28:11 +0300 Subject: fix: avoid renders for passive mouse motion (#1872) refs #1865 --- src/app/input/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/app/input') 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"); } -- cgit v1.2.3