mirror of
https://github.com/zadam/trilium.git
synced 2026-02-22 21:54:39 +01:00
fix(code): scrolling to end changes the viewport
This commit is contained in:
parent
e4432e6feb
commit
4caca56e3b
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user