fix: document-level capture touch listeners for mobile terminal scroll

- Attach touch listeners to document with capture:true instead of container
- Check if touch target is inside terminal container before handling
- This runs before xterm.js internal handlers, giving us full control
- Add touch-action: none to terminal container to prevent browser gestures
- Lower threshold to 3px, 20px per line for responsive scrolling
This commit is contained in:
Alex Blank
2026-05-29 20:03:11 +02:00
parent c1e16f2163
commit ca9db195de
2 changed files with 24 additions and 23 deletions
+1
View File
@@ -3707,6 +3707,7 @@ a.nav-item,
padding: 0;
overflow: hidden;
position: relative;
touch-action: none;
}
/* xterm.js manages its own sizing */