Skip to content

Conversation

ownia
Copy link
Contributor

@ownia ownia commented Sep 25, 2025

Introduce a new config: mouse-scroll-single-event. If it is true, when mouse reporting is enabled, emit a single mouse wheel event per scroll gesture regardless of computed y.delta. This aligns other mainstream linux terminals and prevents the multiplier from inflating the number of reported events.

Fixes: #8875

Ghostty Alacritty Kitty Ghostty (mouse-scroll-single-event = true)
tmux scroll 15 lines per tick (3 * 5) 5 lines per tick 5 lines per tick 5 lines per tick
vim scroll 9 lines per tick (3 * 3) 3 lines per tick 3 lines per tick 3 lines per tick
normal scroll 3 lines per tick 1 lines per tick 5 lines per tick 3 lines per tick

tmux conf has:

set -g mouse on

vimrc has:

set mouse=a
set ttymouse=sgr

Introduce a new config: mouse-scroll-single-event. If it is true, when
mouse reporting is enabled, emit a single mouse wheel event per scroll
gesture regardless of computed y.delta. This aligns other mainstream
linux terminals and prevents the multiplier from inflating the number of
reported events.

Signed-off-by: Weizhao Ouyang <[email protected]>
@ownia ownia requested a review from a team as a code owner September 25, 2025 06:03
@mitchellh
Copy link
Contributor

Instead of a new config, I'd rather just do the right thing here. I think we should discuss if we should always do this. cc @rockorager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants