fix: mobile terminal touch scrolling direction and target

- Attach touch listeners to term.element (xterm root) instead of wrapper
- Fix scroll direction: swipe up now scrolls up (shows older buffer)
- Remove RAF indirection; scroll applied synchronously in touchmove
- Accumulate delta between events for smoother scrolling
- Lower threshold to 6px and px-per-line to 16 for better responsiveness
- Add touch-action: none to terminal container on mobile
This commit is contained in:
Alex Blank
2026-05-29 19:29:29 +02:00
parent 9157694412
commit 87a938fe58
2 changed files with 30 additions and 24 deletions
+1
View File
@@ -3703,6 +3703,7 @@ a.nav-item,
padding: 0;
overflow: hidden;
position: relative;
touch-action: none;
}
/* xterm.js manages its own sizing */