update at 2026-03-04 13:25:26
This commit is contained in:
14
pxterm/scripts/archive/cjs_tools/fix_native.cjs
Normal file
14
pxterm/scripts/archive/cjs_tools/fix_native.cjs
Normal 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...");
|
||||
Reference in New Issue
Block a user