update at 2026-03-03 22:07:05

This commit is contained in:
douboer@gmail.com
2026-03-03 22:07:05 +08:00
parent e4987a2d77
commit 7d2be3d67d
21 changed files with 251 additions and 54 deletions

View File

@@ -1,7 +1,8 @@
const fs = require('fs');
let code = fs.readFileSync('src/styles/main.css', 'utf8');
code += `
// If touch-action is missing from xterm-viewport we need to add it
code = code.replace(/\.terminal-wrapper \.xterm \.xterm-viewport \{/, '.terminal-wrapper .xterm .xterm-viewport {\n touch-action: none !important;');
/* Fix for native scrolling: .xterm-screen cannot be scrolled natively because it is not the scroll container.
To allow native scrolling, we would have to make .xterm-screen point-events: none, BUT we need selection on it. */
`;
fs.writeFileSync('src/styles/main.css', code);