Compare commits
2 commits
048e8e88fb
...
df4c44b0c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df4c44b0c5 | ||
|
|
f843c189d2 |
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ export function useScrollPosition() {
|
||||||
|
|
||||||
const scrollIntoView = async (element, options) => {
|
const scrollIntoView = async (element, options) => {
|
||||||
inProgress.value = true
|
inProgress.value = true
|
||||||
await element.scrollIntoView(options)
|
await element.scrollIntoViewIfNeeded(options)
|
||||||
inProgress.value = false
|
inProgress.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue