update at 2026-03-03 21:19:52
This commit is contained in:
12
pxterm/fix_pointerMove.cjs
Normal file
12
pxterm/fix_pointerMove.cjs
Normal file
@@ -0,0 +1,12 @@
|
||||
const fs = require('fs');
|
||||
let code = fs.readFileSync('src/components/TerminalPanel.vue', 'utf8');
|
||||
|
||||
// The reason touchmove stops is because touch events on iOS are sometimes silently swallowed if the pointer event stops propagation but touch doesn't, OR if touch-action hasn't mapped.
|
||||
// We added touch-action: none. Let's ALSO remove stopImmediatePropagation from pointermove and let standard Pointer Events do their thing!
|
||||
// Actually, earlier we added:
|
||||
// onTouchKeyboardPointerMove = (...) { event.stopImmediatePropagation() }
|
||||
// If we stop pointermove, the browser might think the gesture is dead.
|
||||
|
||||
code = code.replace(/event\.stopImmediatePropagation\(\);/g, `// event.stopImmediatePropagation();`);
|
||||
|
||||
fs.writeFileSync('src/components/TerminalPanel.vue', code);
|
||||
Reference in New Issue
Block a user