From 47359e40022f8caa4147d7d7cfccccba01e2b83b Mon Sep 17 00:00:00 2001 From: Teigen Date: Wed, 17 Jun 2026 20:19:34 +0800 Subject: [PATCH] fix(iPad): enable terminal touch interaction on all touch devices touch-action: none was only set inside @media (max-width: 430px), so iPad's browser consumed touch events before the JS scroll/tap handler could preventDefault. Move to .touch-device class in styles.css so it applies at any screen width. --- src/web/public/styles.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/web/public/styles.css b/src/web/public/styles.css index df1f120a..cd0a3e78 100644 --- a/src/web/public/styles.css +++ b/src/web/public/styles.css @@ -2229,6 +2229,15 @@ body.solo-mode .btn-lifecycle-log { background: transparent !important; } +/* Touch devices: JS touch handler owns scroll/tap — prevent browser + from consuming touch events before touchmove preventDefault fires. */ +.touch-device .terminal-container, +.touch-device .terminal-container .xterm, +.touch-device .terminal-container .xterm-viewport, +.touch-device .terminal-container .xterm-screen { + touch-action: none; +} + /* Welcome Overlay */ .welcome-overlay { position: absolute;