On a laptop whose touchpad is broken, the touch screen is the only way to scroll. Swiping in the terminal did nothing:
xterm.js has no touch scrolling of its own.
tmux owns the mouse, so tmux's history is reachable only through wheel reports.
Fix
Terminal swipes (term.jswireTouchScroll):
A one-finger vertical swipe on the terminal now becomes wheel reports at the touch point. tmux scrolls its history (5 lines per report, entering copy mode and leaving it at the bottom), exactly like the mouse wheel. The content follows the finger.
A flick keeps scrolling and eases out.
A tap still focuses the terminal, and taps on tmux's status bar still switch windows.
Swipes are never sent on the status line, where a wheel would switch windows.
Without mouse tracking, the swipe scrolls xterm's own buffer.
Page handling: the terminal has touch-action: none, so the page doesn't pan or zoom under a swipe.
Resize handles: both resize handles have touch-action: none (a finger drag resizes), with wider grab areas when the device has a touch screen (any-pointer: coarse).
Checked with emulated touch (Chromium + CDP touch events)
Terminal:
A slow drag enters scrollback.
A flick continues.
A flick back up returns to the live view.
A tap focuses the terminal.
Native touch scrolling also works in the explorer (draggable rows included), the editor, the markdown preview and the Settings dialog.
On a laptop whose touchpad is broken, the touch screen is the only way to scroll. Swiping in the terminal did nothing:
- xterm.js has no touch scrolling of its own.
- tmux owns the mouse, so tmux's history is reachable only through wheel reports.
**Fix**
- **Terminal swipes** (`term.js` `wireTouchScroll`):
- A one-finger vertical swipe on the terminal now becomes wheel reports at the touch point. tmux scrolls its history (5 lines per report, entering copy mode and leaving it at the bottom), exactly like the mouse wheel. The content follows the finger.
- A flick keeps scrolling and eases out.
- A tap still focuses the terminal, and taps on tmux's status bar still switch windows.
- Swipes are never sent on the status line, where a wheel would switch windows.
- Without mouse tracking, the swipe scrolls xterm's own buffer.
- **Page handling:** the terminal has `touch-action: none`, so the page doesn't pan or zoom under a swipe.
- **Resize handles:** both resize handles have `touch-action: none` (a finger drag resizes), with wider grab areas when the device has a touch screen (`any-pointer: coarse`).
**Checked with emulated touch (Chromium + CDP touch events)**
- **Terminal:**
- A slow drag enters scrollback.
- A flick continues.
- A flick back up returns to the live view.
- A tap focuses the terminal.
- **Native touch scrolling** also works in the explorer (draggable rows included), the editor, the markdown preview and the Settings dialog.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
On a laptop whose touchpad is broken, the touch screen is the only way to scroll. Swiping in the terminal did nothing:
Fix
term.jswireTouchScroll):touch-action: none, so the page doesn't pan or zoom under a swipe.touch-action: none(a finger drag resizes), with wider grab areas when the device has a touch screen (any-pointer: coarse).Checked with emulated touch (Chromium + CDP touch events)