Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

done() ends quite abruptly #212

Open
davestewart opened this issue Aug 15, 2019 · 1 comment
Open

done() ends quite abruptly #212

davestewart opened this issue Aug 15, 2019 · 1 comment

Comments

@davestewart
Copy link

davestewart commented Aug 15, 2019

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
Copy link

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants