update at 2026-03-03 22:07:05

This commit is contained in:
douboer@gmail.com
2026-03-03 22:07:05 +08:00
parent e4987a2d77
commit 7d2be3d67d
21 changed files with 251 additions and 54 deletions

14
pxterm/fix_native.cjs Normal file
View File

@@ -0,0 +1,14 @@
const fs = require('fs');
let code = fs.readFileSync('src/components/TerminalPanel.vue', 'utf8');
// I need to ensure that pointermove/pointerdown is NOT swallowing the touch event in mobile safari.
// Let's remove stopImmediatePropagation in the new logic if it's there.
// If touchmove just calls event.stopImmediatePropagation(), then xterm doesn't see it, but DOES it stop the native scroll if xterm is absolute positioned over the viewport?
// Wait, xterm's architecture:
// .xterm-screen is absolute positioned OVER .xterm-viewport.
// If user touches .xterm-screen (zIndex 1?), the touch is on .xterm-screen.
// .xterm-screen DOES NOT HAVE overflow-y: scroll. It's fixed height!
// Therefore, iOS panning gesture on .xterm-screen does NOT bubble to .xterm-viewport as a native scroll!
console.log("Analyzing xterm architecture...");