Skip to content

Commit b8643ba

Browse files
committed
Fix slow file uploads causing the progress bar to jump backwards
1 parent 34c66e8 commit b8643ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/progress.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function start(delay) {
1414

1515
function progress(event) {
1616
if (NProgress.isStarted() && event.detail.progress.percentage) {
17-
NProgress.set(event.detail.progress.percentage / 100 * .9)
17+
NProgress.set(Math.max(NProgress.status, event.detail.progress.percentage / 100 * 0.9))
1818
}
1919
}
2020

0 commit comments

Comments
 (0)