update at 2026-03-03 22:07:05
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user