fix(code): scrolling to end changes the viewport

This commit is contained in:
Elian Doran 2026-02-17 18:33:10 +02:00
parent e4432e6feb
commit 4caca56e3b
No known key found for this signature in database

View File

@ -188,8 +188,6 @@ export default class CodeMirror extends EditorView {
const endPos = this.state.doc.length;
this.dispatch({
selection: EditorSelection.cursor(endPos),
effects: EditorView.scrollIntoView(endPos, { y: "end" }),
scrollIntoView: true
});
}