Skip to content

Commit

Permalink
wheel: do not emit events if wheel has not moved
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Jun 18, 2024
1 parent 1cc50a5 commit 10b4d7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/termiointernals.c
Original file line number Diff line number Diff line change
Expand Up @@ -2171,6 +2171,10 @@ termio_internal_mouse_wheel(Termio *sd,
return;
}

if (ev->z == 0)
{
return;
}
if (modifiers.ctrl || modifiers.shift)
{
return;
Expand Down

0 comments on commit 10b4d7c

Please sign in to comment.