Files
terminal-lab/pxterm/fix_touch_pointer.cjs
2026-03-03 22:07:05 +08:00

8 lines
371 B
JavaScript

const fs = require('fs');
let code = fs.readFileSync('src/components/TerminalPanel.vue', 'utf8');
// The issue might be pointermove. If we are completely hands-off, we must also make sure pointermove is not stopping it.
const regex = /onTouchKeyboardPointerMove = \(event: PointerEvent\) => \{[\s\S]*?touchGateScrollLike = true;\n\s*\}/;
console.log(regex.test(code));