Another attempt at fixing the no-scroll between pages bug
parent
783a3ad16a
commit
f393bedb02
|
@ -670,6 +670,10 @@ export class Editor {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
editorView.scrollDOM.scrollTop = 0;
|
editorView.scrollDOM.scrollTop = 0;
|
||||||
|
editorView.dispatch({
|
||||||
|
selection: { anchor: 0 },
|
||||||
|
scrollIntoView: true,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
editorView.focus();
|
editorView.focus();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue