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

@@ -0,0 +1,13 @@
const fs = require('fs');
let code = fs.readFileSync('src/components/TerminalPanel.vue', 'utf8');
// Also remove residual bits
code = code.replace(/\s*touchScrollVelocity = 0;/g, '');
code = code.replace(/\s*touchScrollVelocity \*= TOUCH_SCROLL_DAMPING;/g, '');
code = code.replace(/\s*if \(Math\.abs\(touchScrollVelocity\) < TOUCH_SCROLL_STOP_THRESHOLD\) \{[\s\S]*?\}\n/g, '');
code = code.replace(/\s*viewportScroller\.scrollTop \+= touchScrollVelocity;/g, '');
code = code.replace(/function clearTouchScrollMomentum[\s\S]*?\n\}\n/g, '');
code = code.replace(/function runTouchScrollMomentum[\s\S]*?\n\}\n/g, '');
fs.writeFileSync('src/components/TerminalPanel.vue', code);