fix(maestro): reliable touch scrollback on mobile
ci / rust (push) Failing after 1m49s

xterm's native touch scrolling crawled a line at a time and stalled after a
few. Map finger drags on the viewport to term.scrollLines (skipped on the alt
screen, which the app owns) and claim vertical pans via touch-action: pan-y.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-24 15:59:49 +00:00
co-authored by Claude Opus 4.8
parent 3b69c98cca
commit a1b6c85f8d
2 changed files with 48 additions and 0 deletions
+3
View File
@@ -1148,6 +1148,9 @@ textarea {
.attach-body .xterm .xterm-viewport {
overflow-y: auto;
scrollbar-width: none;
/* We drive scrollback from touchmove (see attach.ts); claim vertical pans so
the browser doesn't fight the handler or trigger gestures mid-scroll. */
touch-action: pan-y;
}
.attach-body .xterm .xterm-viewport::-webkit-scrollbar {