if needed
This commit is contained in:
parent
8eabcc86d8
commit
f843c189d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue