update at 2026-03-04 13:25:26
This commit is contained in:
8
pxterm/scripts/archive/cjs_tools/fix_ts_2.cjs
Normal file
8
pxterm/scripts/archive/cjs_tools/fix_ts_2.cjs
Normal file
@@ -0,0 +1,8 @@
|
||||
const fs = require('fs');
|
||||
let code = fs.readFileSync('src/components/TerminalPanel.vue', 'utf8');
|
||||
|
||||
code = code.replace(/const threshold_v = 0\.2;/g, '');
|
||||
code = code.replace(/threshold_v/g, '0.2');
|
||||
code = code.replace(/Math\.abs\(touchScrollVelocity\) > threshold && /g, 'Math.abs(touchScrollVelocity) > 0.2 && ');
|
||||
|
||||
fs.writeFileSync('src/components/TerminalPanel.vue', code);
|
||||
Reference in New Issue
Block a user