fix: unify terminal scroll sensitivity defaults (#12334)

Refs #11911
This commit is contained in:
ssongliu
2026-03-25 09:34:18 +00:00
committed by GitHub
parent 7b554c0d61
commit 04dceb93a7
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ const newTerm = () => {
cursorBlink: terminalStore.cursorBlink ? String(terminalStore.cursorBlink).toLowerCase() === 'enable' : true,
cursorStyle: terminalStore.cursorStyle ? getStyle() : 'underline',
scrollback: terminalStore.scrollback || 1000,
scrollSensitivity: terminalStore.scrollSensitivity || 15,
scrollSensitivity: terminalStore.scrollSensitivity || 6,
});
};
+1 -1
View File
@@ -14,7 +14,7 @@ export const TerminalStore = defineStore({
cursorBlink: 'enable',
cursorStyle: 'underline',
scrollback: 1000,
scrollSensitivity: 10,
scrollSensitivity: 6,
}),
actions: {
setLineHeight(lineHeight: number) {
@@ -191,7 +191,7 @@ const form = reactive({
cursorBlink: 'Enable',
cursorStyle: 'underline',
scrollback: 1000,
scrollSensitivity: 10,
scrollSensitivity: 6,
showDefaultConn: false,
defaultConn: '',
});
@@ -329,7 +329,7 @@ const iniTerm = () => {
cursorBlink: true,
cursorStyle: 'block',
scrollback: 1000,
scrollSensitivity: 15,
scrollSensitivity: 6,
});
term.value.open(terminalElement.value);
applyPreviewBackground();