update at 2026-03-04 13:25:26
This commit is contained in:
9
pxterm/scripts/archive/cjs_tools/fix_touch_action.cjs
Normal file
9
pxterm/scripts/archive/cjs_tools/fix_touch_action.cjs
Normal file
@@ -0,0 +1,9 @@
|
||||
const fs = require('fs');
|
||||
let code = fs.readFileSync('src/styles/main.css', 'utf8');
|
||||
|
||||
code = code.replace(/\.xterm-screen {\n touch-action: none !important;\n}\n\n\n/g, '');
|
||||
code = code.replace(/\.xterm-text-layer {\n touch-action: none !important;\n}\n\n\n/g, '');
|
||||
code = code.replace(/\.xterm-rows {\n touch-action: none !important;\n}\n/g, '');
|
||||
code = code.replace(/touch-action: none !important;\n touch-action: none !important;\n/g, '');
|
||||
|
||||
fs.writeFileSync('src/styles/main.css', code);
|
||||
Reference in New Issue
Block a user