if needed

This commit is contained in:
Henry Jameson 2026-09-09 19:51:36 +03:00
commit f843c189d2

View file

@ -26,7 +26,7 @@ export function useScrollPosition() {
const scrollIntoView = async (element, options) => {
inProgress.value = true
await element.scrollIntoView(options)
await element.scrollIntoViewIfNeeded(options)
inProgress.value = false
}