microsoft / microsoft/terminal

Mouse tracking does not respect the system's `rows to scroll` setting

Open
#18,102 8 comments 0 reactions 0 assignees View on GitHub
Area-Input Area-TerminalControl Issue-Bug Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

current main

### Windows build number

10.0.19045.4894

### Other Software

WSL + vim

### Steps to reproduce

1. Set the `rows to scroll` system setting to 5.
2. Run
```
wsl bash -c "vim -c :h"
```
3. Scroll the mouse wheel.

Type `:q` and press `Enter` (repeat twice) to quit.

### Expected Behavior

The cursor should move at the pace specified in the system-wide settings - 5 rows per 1 wheel step.

https://github.com/user-attachments/assets/81ccadb8-454c-44a9-bff6-9a046c0ab1d8

### Actual Behavior

The cursor moves at a speed of one row per mouse wheel step.

https://github.com/user-attachments/assets/aad547ef-c99d-4b32-9002-b35f26091c63

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Windows Terminal using the listed WSL and vim command after setting Windows' rows-to-scroll value to 5. Trace the mouse-wheel handling and verify that scrolling follows the system setting rather than moving one row per wheel step; repeat the reproduction to confirm the behavior is fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.