From f8f23ced86e5e47e5ac0edfdc8b88b97219f1ab6 Mon Sep 17 00:00:00 2001 From: chme Date: Wed, 19 Dec 2018 11:47:35 +0100 Subject: [PATCH] [web-src] Reduce timeout for scroll behavior to 10 ms --- web-src/src/router/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web-src/src/router/index.js b/web-src/src/router/index.js index 3bccb34f..90287fbc 100644 --- a/web-src/src/router/index.js +++ b/web-src/src/router/index.js @@ -213,7 +213,7 @@ export const router = new VueRouter({ return new Promise((resolve, reject) => { setTimeout(() => { resolve(savedPosition) - }, 500) + }, 10) }) } else if (to.path === from.path && to.hash) { return { selector: to.hash, offset: { x: 0, y: 90 } } @@ -221,13 +221,13 @@ export const router = new VueRouter({ return new Promise((resolve, reject) => { setTimeout(() => { resolve({ selector: to.hash, offset: { x: 0, y: 90 } }) - }, 500) + }, 10) }) } else if (to.meta.has_index) { return new Promise((resolve, reject) => { setTimeout(() => { resolve({ selector: '#top', offset: { x: 0, y: 110 } }) - }, 500) + }, 10) }) } else { return { x: 0, y: 0 }