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.
This commit is contained in:
Teigen
2026-06-17 23:40:21 +08:00
parent a8e7d60db4
commit 47359e4002
+9
View File
@@ -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;