Desktop: Fixes #3228: Markdown editor would not scroll in sync with viewer in some cases

pull/3189/head^2
Laurent Cozic 2020-05-20 01:16:03 +01:00
parent 01e0c0c21f
commit 6f8332bad1
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ function AceEditor(props: NoteBodyEditorProps, ref: any) {
} else {
props.onMessage(event);
}
}, [props.onMessage, props.content, aceEditor_change]);
}, [props.onMessage, props.content, aceEditor_change, setEditorPercentScroll]);
useEffect(() => {
let cancelled = false;