This commit is contained in:
Timothy Jaeryang Baek 2026-10-15 15:08:59 +04:00
parent 673f587a86
commit 1595c20130

View file

@ -223,7 +223,7 @@
const position = Math.min(start, view.state.doc.length);
view.dispatch({
selection: { anchor: position },
effects: EditorView.scrollIntoView(position, { y: 'center' })
effects: EditorView.scrollIntoView(position, { y: 'start', yMargin: 0 })
});
}
refresh();