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));