Merge pull request #4697 from Snuffleupagus/issue-4696
Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)
This commit is contained in:
commit
2ff1d433b9
@ -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…
Reference in New Issue
Block a user