chore: update scroll logic

This commit is contained in:
Aman Harwara
2023-10-18 02:01:49 +05:30
parent 42543577e8
commit 7c3e46a38d

View File

@@ -698,9 +698,6 @@ const ToolbarPlugin = () => {
}
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
domElement.scrollIntoView({ behavior: reducedMotion ? 'auto' : 'smooth', block: 'nearest' })
if (isMobile) {
editor.focus()
}
})
}}
>