diff --git a/web/app.js b/web/app.js index a2fbfb884..69f268fe1 100644 --- a/web/app.js +++ b/web/app.js @@ -2000,7 +2000,7 @@ function webViewerPageChanging(e) { var zoomDisabled = false, zoomDisabledTimeout; function handleMouseWheel(evt) { var pdfViewer = PDFViewerApplication.pdfViewer; - if (pdfViewer.isInPresentationMode) { + if (!pdfViewer || pdfViewer.isInPresentationMode) { return; }