From ad261028155eaa7a03d774e20d05f724fdd0687b Mon Sep 17 00:00:00 2001 From: EYHN Date: Mon, 5 Aug 2024 02:29:49 +0000 Subject: [PATCH] fix(core): fix scroll block into view (#7712) --- .../block-suite-editor/blocksuite-editor-container.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx index c95895ba2..a09517b64 100644 --- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx +++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx @@ -215,7 +215,7 @@ export const BlocksuiteEditorContainer = forwardRef< return; } blockElement.scrollIntoView({ - behavior: 'smooth', + behavior: 'instant', block: 'center', }); const selectManager = affineEditorContainerProxy.host?.selection;