1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Fix preview-window's scroll behavior, #3289

This commit is contained in:
hikerpig
2019-10-21 13:14:34 +08:00
committed by Junyoung Choi
parent d010c5532d
commit 77833ff980
2 changed files with 23 additions and 6 deletions

View File

@@ -119,7 +119,7 @@ class MarkdownEditor extends React.Component {
status: 'PREVIEW'
}, () => {
this.refs.preview.focus()
this.refs.preview.scrollTo(cursorPosition.line)
this.refs.preview.scrollToRow(cursorPosition.line)
})
eventEmitter.emit('topbar:togglelockbutton', this.state.status)
}