This is an automated email from the ASF dual-hosted git repository.
songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 991414edc5 [Improvement][UI] Scrolling will be applied to parent model
on editor scrolled to top/bottom (#11335)
991414edc5 is described below
commit 991414edc5fa0f72551efddd215e96f65ee4b545
Author: Chris Ho <[email protected]>
AuthorDate: Mon Aug 8 09:53:05 2022 +0800
[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