1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 10:16:26 +00:00

Merge pull request #2405 from daiyam/fix-scroll

Better scroll sync between the editor and the preview in the SplitEditor
This commit is contained in:
Junyoung Choi
2020-07-20 19:48:29 +09:00
committed by GitHub
4 changed files with 229 additions and 56 deletions

View File

@@ -139,7 +139,7 @@ class MarkdownEditor extends React.Component {
},
() => {
this.previewRef.current.focus()
this.previewRef.current.scrollToRow(cursorPosition.line)
this.previewRef.current.scrollToLine(cursorPosition.line)
}
)
eventEmitter.emit('topbar:togglelockbutton', this.state.status)