Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)
This commit is contained in:
parent
002d55ff8f
commit
51d6ad7176
@ -887,7 +887,7 @@ var PDFView = {
|
|||||||
// that we discard some of the loaded data. This can cause the loading
|
// 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
|
// bar to move backwards. So prevent this by only updating the bar if it
|
||||||
// increases.
|
// increases.
|
||||||
if (percent > PDFView.loadingBar.percent) {
|
if (percent > PDFView.loadingBar.percent || isNaN(percent)) {
|
||||||
PDFView.loadingBar.percent = percent;
|
PDFView.loadingBar.percent = percent;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user