From 59de261a1fc4242669ba8b1f37cdbc423d4dca69 Mon Sep 17 00:00:00 2001 From: AykutSarac Date: Sat, 7 Dec 2024 23:28:13 +0300 Subject: [PATCH] feat: disable sticky scroll --- src/containers/Editor/components/TextEditor.tsx | 1 + src/containers/Modals/SchemaModal/index.tsx | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/containers/Editor/components/TextEditor.tsx b/src/containers/Editor/components/TextEditor.tsx index 464df7bb610..8275f39523a 100644 --- a/src/containers/Editor/components/TextEditor.tsx +++ b/src/containers/Editor/components/TextEditor.tsx @@ -16,6 +16,7 @@ const editorOptions: EditorProps["options"] = { tabSize: 2, formatOnType: true, minimap: { enabled: false }, + stickyScroll: { enabled: false }, scrollBeyondLastLine: false, }; diff --git a/src/containers/Modals/SchemaModal/index.tsx b/src/containers/Modals/SchemaModal/index.tsx index 60a8566cc2f..a1b08e4c8ec 100644 --- a/src/containers/Modals/SchemaModal/index.tsx +++ b/src/containers/Modals/SchemaModal/index.tsx @@ -92,9 +92,8 @@ export const SchemaModal = ({ opened, onClose }: ModalProps) => { tabSize: 2, formatOnType: true, scrollBeyondLastLine: false, - minimap: { - enabled: false, - }, + stickyScroll: { enabled: false }, + minimap: { enabled: false }, }} />