update at 2026-03-03 21:19:52
This commit is contained in:
8
pxterm/fix_touch_action2.cjs
Normal file
8
pxterm/fix_touch_action2.cjs
Normal file
@@ -0,0 +1,8 @@
|
||||
const fs = require('fs');
|
||||
let code = fs.readFileSync('src/styles/main.css', 'utf8');
|
||||
|
||||
// I put touch-action on xterm-viewport... but wait, the screen you drag on is the `xterm-screen` canvas!
|
||||
// We need touch-action: none on .xterm-screen, .xterm-text-layer, and .xterm-viewport.
|
||||
code += '\n\n.xterm-rows {\n touch-action: none !important;\n}\n';
|
||||
|
||||
fs.writeFileSync('src/styles/main.css', code);
|
||||
Reference in New Issue
Block a user