Let the pdfjs deal with new render request

This commit is contained in:
Hadi Nategh 2022-02-11 12:33:28 +01:00
parent 2968b058cf
commit a7aee1d3d4

View File

@ -187,14 +187,11 @@ class pdf_player extends HTMLElement {
let viewport = page.getViewport({scale:self.__pdfViewState.zoom});
self._canvas.width = viewport.width;
self._canvas.height = viewport.height;
// don't ty to render if page is under proccess
if (typeof page.intentStates.display == 'undefined')
{
page.render({
canvasContext: canvasContext,
viewport: viewport
});
}
});
}