mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Fix thumbnail's drawingRequired
This commit is contained in:
parent
4bb289ec49
commit
80a1919cfc
1 changed files with 4 additions and 0 deletions
|
@ -878,6 +878,10 @@ var ThumbnailView = function thumbnailView(container, page, id, pageRatio) {
|
|||
return ctx;
|
||||
}
|
||||
|
||||
this.drawingRequired = function thumbnailViewDrawingRequired() {
|
||||
return !this.hasImage;
|
||||
};
|
||||
|
||||
this.draw = function thumbnailViewDraw(callback) {
|
||||
if (this.hasImage) {
|
||||
callback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue