update at 2026-03-04 13:25:26
This commit is contained in:
9
pxterm/scripts/archive/cjs_tools/fix_touch_pointer2.cjs
Normal file
9
pxterm/scripts/archive/cjs_tools/fix_touch_pointer2.cjs
Normal file
@@ -0,0 +1,9 @@
|
||||
const fs = require('fs');
|
||||
let code = fs.readFileSync('src/components/TerminalPanel.vue', 'utf8');
|
||||
|
||||
// wait, how is xterm hooking into scrolling on mobile if we do stopImmediatePropagation on touchmove?
|
||||
// Actually, if we do stopImmediatePropagation, xterm DOES NOT see the touchmove. So xterm DOES NOT scroll the viewport.
|
||||
// And because the .xterm-screen (where the touch starts) DOES NOT have overflow: scroll, the browser DOES NOT scroll the viewport natively either!!
|
||||
// This explains why it's completely frozen! We stopped xterm from scrolling it, AND the browser doesn't scroll it natively because the touch target isn't the scrollable container.
|
||||
|
||||
console.log("Found the core issue.");
|
||||
Reference in New Issue
Block a user