Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): fix scroll block into view (#7712)

EYHNad261028155e
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 c95895ba2e..a09517b642 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;