mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
Adds support of the indeterminate loading progress
This commit is contained in:
parent
da861bef30
commit
cd1a645881
4 changed files with 40 additions and 7 deletions
|
@ -145,6 +145,7 @@ PdfDataListener.prototype = {
|
|||
}
|
||||
this.data.set(chunk, this.loaded);
|
||||
this.loaded = willBeLoaded;
|
||||
this.onprogress(this.loaded);
|
||||
} else {
|
||||
this.data.set(chunk, offset);
|
||||
this.loaded = offset + chunk.length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue