update at 2026-03-03 21:19:52
This commit is contained in:
9
pxterm/fix_selection_conflict.cjs
Normal file
9
pxterm/fix_selection_conflict.cjs
Normal file
@@ -0,0 +1,9 @@
|
||||
const fs = require('fs');
|
||||
let code = fs.readFileSync('src/components/TerminalPanel.vue', 'utf8');
|
||||
|
||||
// I commented out all stopImmediatePropagation! That's bad for click/native selection.
|
||||
// Let's put back ONLY the one in stopImmediatePropagation for PASS_NATIVE etc, but leave touchmove alone.
|
||||
|
||||
// Actually I just use regex to revert everything and do it right.
|
||||
code = code.replace(/\/\/ event\.stopImmediatePropagation\(\);/g, 'event.stopImmediatePropagation();');
|
||||
fs.writeFileSync('src/components/TerminalPanel.vue', code);
|
||||
Reference in New Issue
Block a user