mirror of https://github.com/laurent22/joplin.git
Desktop: Scroll linked-to headers to the top of the editor
parent
6d3c3a80ab
commit
4347d10dcd
|
@ -72,7 +72,9 @@ const jumpToHash = (view: EditorView, hash: string) => {
|
|||
if (targetLocation !== undefined) {
|
||||
view.dispatch({
|
||||
selection: EditorSelection.cursor(targetLocation),
|
||||
scrollIntoView: true,
|
||||
effects: [
|
||||
EditorView.scrollIntoView(targetLocation, { y: 'start' }),
|
||||
],
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue