[Pkg-javascript-commits] [pdf.js] 26/210: Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)
David Prévot
taffit at moszumanska.debian.org
Thu Jun 5 14:20:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch upstream
in repository pdf.js.
commit 51d6ad7176a6585fc604939d6374651cfa226973
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Sun Apr 27 22:11:25 2014 +0200
Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)
---
web/viewer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/viewer.js b/web/viewer.js
index c44ca8d..14b72bd 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -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;
}
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list