Unify coding style
This commit is contained in:
parent
565f04d49d
commit
ced23f350a
|
@ -96,13 +96,13 @@ onMounted(async () => {
|
|||
// add shortcut for save
|
||||
editorNode.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, (event) => {
|
||||
emit('save')
|
||||
});
|
||||
})
|
||||
|
||||
if (props.rememberScroll) {
|
||||
editorNode.onDidScrollChange((event) => {
|
||||
// Update scrolltop when scroll height changes, ie. content changes
|
||||
if (!event.scrollHeightChanged) {
|
||||
scrollTop.value = event.scrollTop;
|
||||
scrollTop.value = event.scrollTop
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue