Merge pull request #7778 from srslafazan/defensive-check-for-mousewheel-handler

Additional check to ensure pdfViewer object is defined before handleMouseWheel event accesses its property isInPresentationMode
This commit is contained in:
Tim van der Meij 2016-11-03 22:03:44 +01:00 committed by GitHub
commit fe3c12bd16

View File

@ -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;
}