mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
[web-src] Reduce timeout for scroll behavior to 10 ms
This commit is contained in:
parent
eefacbbf55
commit
f8f23ced86
@ -213,7 +213,7 @@ export const router = new VueRouter({
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolve(savedPosition)
|
resolve(savedPosition)
|
||||||
}, 500)
|
}, 10)
|
||||||
})
|
})
|
||||||
} else if (to.path === from.path && to.hash) {
|
} else if (to.path === from.path && to.hash) {
|
||||||
return { selector: to.hash, offset: { x: 0, y: 90 } }
|
return { selector: to.hash, offset: { x: 0, y: 90 } }
|
||||||
@ -221,13 +221,13 @@ export const router = new VueRouter({
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolve({ selector: to.hash, offset: { x: 0, y: 90 } })
|
resolve({ selector: to.hash, offset: { x: 0, y: 90 } })
|
||||||
}, 500)
|
}, 10)
|
||||||
})
|
})
|
||||||
} else if (to.meta.has_index) {
|
} else if (to.meta.has_index) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolve({ selector: '#top', offset: { x: 0, y: 110 } })
|
resolve({ selector: '#top', offset: { x: 0, y: 110 } })
|
||||||
}, 500)
|
}, 10)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return { x: 0, y: 0 }
|
return { x: 0, y: 0 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user