Scroll terminal panes with a swipe on touch devices #131
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/touch-scroll"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On a phone, swiping a terminal pane doesn't scroll it, with one finger or two.
Cause: xterm.js 6 replaced its natively scrollable viewport with VS Code's
ScrollableElement, which only handleswheel. xterm ships a touchGesturehelper but never registers a target, andTerminalViewadded no touch handling, so swipes were dropped.Fix (
web/src/terminal-view.ts): turn vertical swipes into scrolling.scrollLines, following the finger row by row, with a decaying fling on release.wheelon.xterm-screen, so the program gets wheel reports at the touch position.Tested with Playwright Chromium emulating a Pixel 7, driving real CDP touch events:
ESC[<64;…Mwheel reportsESC[Aarrowstsc --noEmitpasses. Not yet tried on a physical device; iOS Safari is untested.🤖 Generated with Claude Code
illogical has moved to GitHub, so this continues there: https://github.com/arugula-salad/illogical/pull/93 (same commit). Closing this one.