Browse Source

Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)

Jonas Jenwald 11 years ago
parent
commit
51d6ad7176
  1. 2
      web/viewer.js

2
web/viewer.js

@ -887,7 +887,7 @@ var PDFView = { @@ -887,7 +887,7 @@ var PDFView = {
// that we discard some of the loaded data. This can cause the loading
// bar to move backwards. So prevent this by only updating the bar if it
// increases.
if (percent > PDFView.loadingBar.percent) {
if (percent > PDFView.loadingBar.percent || isNaN(percent)) {
PDFView.loadingBar.percent = percent;
}
},

Loading…
Cancel
Save