From 10b4d7cdfacaa458d615c22e0794b3c1e638ee0e Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Tue, 18 Jun 2024 22:07:54 +0200 Subject: [PATCH] wheel: do not emit events if wheel has not moved --- src/bin/termiointernals.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/termiointernals.c b/src/bin/termiointernals.c index 1a7cda51..8d75c413 100644 --- a/src/bin/termiointernals.c +++ b/src/bin/termiointernals.c @@ -2171,6 +2171,10 @@ termio_internal_mouse_wheel(Termio *sd, return; } + if (ev->z == 0) + { + return; + } if (modifiers.ctrl || modifiers.shift) { return;