rstacruz / nprogress

For slim progress bars like on YouTube, Medium, etc
http://ricostacruz.com/nprogress
MIT License
26.15k stars 1.81k forks source link

done() ends quite abruptly #212

Open davestewart opened 5 years ago

davestewart commented 5 years ago

Nice library!

I came here because Vue Progress Bar autocompletes on long uploads (which is bad).

Anyway, all good so far, but I'm finding that when calling done() the bar disappears quite abruptly. This feels a little jarring!

Vue Progress Bar has a slightly more gentle finish:

My settings are:

progress.configure({
  minimum: 0.3,
  easing: 'ease',
  speed: 800,
  showSpinner: false
})

Can I tweak these?

Or is this by design ?

rdhainaut commented 3 years ago

Yeah, i have the same feeling (UX) when I use this library. The speed setting give already a little control on that but i was not satisfy.

So I have replace the done() call by this

NProgress.set(0.99);
  window.setTimeout(() => { NProgress.done(); }, 500);