feature: updatescrollIntoViewByBlockId API;

This commit is contained in:
mitsuha
2022-08-25 18:53:15 +08:00
parent b2d1968492
commit 02f8f8bcec
2 changed files with 5 additions and 33 deletions
@@ -168,11 +168,7 @@ export const TOC = () => {
const onClick = async (blockId?: string) => {
setActiveBlockId(blockId);
await editor.scrollManager.scrollIntoViewByBlockId(
blockId,
'smooth',
'primary'
);
await editor.scrollManager.scrollIntoViewByBlockId(blockId);
};
return (