Enabling mouse support and setting high `scrolloff` values causes an unequal amount of cursor movement per unit of mouse scroll movement.
Author: nothingnessesCreated Jan 17, 2021Updated Sep 9, 2026
Labelsbug
Steps
- Add
set-option global scrolloff 999,999andset-option -add global ui_options ncurses_enable_mouse=yesto "kakrc". - Open a text file that has at least two screens worth of lines so we can test the mouse scroll behaviour.
- Move the cursor to about the middle of the file.
- Scroll down by one unit of mouse scroll. Notice that the cursor moved down by three lines.
- Scroll up by one unit of mouse scroll. Notice that the cursor moved up by two lines.
Outcome
The cursor moved three lines down per mouse scroll down, and two lines up per mouse scroll up.
Expected
The cursor moved an equal amount (but at different directions) per unit of mouse scroll movement (with respect to the directions).
Source: mawww/kakoune