fix(terminal): touchpad scrolls 1:1 with the finger

xterm.js sends one wheel report per event whatever its size and damps a
touchpad's pixel deltas x0.3, so a swipe crawled. With mouse tracking on,
TerminalView now sends the SGR reports itself (lib/wheelReports.ts): one
per 5 rows of travel (what one report scrolls in a Claude pane), the
remainder carried between events, at least one per wheel notch, at the
pointer's cell with xterm's modifier bits.
This commit is contained in:
2026-11-02 16:06:43 +07:00
parent e0b8d5641e
commit 2d6c751fb2
5 changed files with 155 additions and 8 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long