diff --git a/web/viewer.js b/web/viewer.js index 393c1a4b1..6610b64c6 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -2772,6 +2772,9 @@ function updateViewarea() { return; var visible = PDFView.getVisiblePages(); var visiblePages = visible.views; + if (visiblePages.length === 0) { + return; + } PDFView.renderHighestPriority();