misc: remove progress bar for instant navigations
This commit is contained in:
1 parent
49a0e983df
commit
4b730ab415
3 files changed
+7
-5
No files matched your search
@@ -32,17 +32,19 @@
|
||||
nProgress.configure({
|
||||
minimum: 0.4,
|
||||
trickleSpeed: 200,
|
||||
showSpinner: false,
|
||||
easing: 'ease-out',
|
||||
speed: 300,
|
||||
})
|
||||
|
||||
let barTimeout: any = 0
|
||||
|
||||
$: {
|
||||
if (browser) {
|
||||
if ($navigating) {
|
||||
nProgress.start()
|
||||
barTimeout = setTimeout(() => nProgress.start(), 100)
|
||||
}
|
||||
if (!$navigating) {
|
||||
clearTimeout(barTimeout)
|
||||
nProgress.done()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user