From 991414edc5fa0f72551efddd215e96f65ee4b545 Mon Sep 17 00:00:00 2001 From: Chris Ho Date: Mon, 8 Aug 2022 09:53:05 +0800 Subject: [PATCH] [Improvement][UI] Scrolling will be applied to parent model on editor scrolled to top/bottom (#11335) --- dolphinscheduler-ui/src/components/monaco-editor/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/components/monaco-editor/index.tsx b/dolphinscheduler-ui/src/components/monaco-editor/index.tsx index bc0bdf75cc..c0d7297c27 100644 --- a/dolphinscheduler-ui/src/components/monaco-editor/index.tsx +++ b/dolphinscheduler-ui/src/components/monaco-editor/index.tsx @@ -97,7 +97,10 @@ export default defineComponent({ readOnly: formItem.mergedDisabledRef.value || props.options?.readOnly, value: props.defaultValue ?? props.value, automaticLayout: true, - theme: monacoEditorThemeRef.value + theme: monacoEditorThemeRef.value, + scrollbar: { + alwaysConsumeMouseWheel: false + } }) editor.onDidChangeModelContent(() => { const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props