diff --git a/src/openseadragon.js b/src/openseadragon.js index 731a06b4..d690f370 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1986,7 +1986,7 @@ function OpenSeadragon( options ){ */ setElementPointerEvents: function( element, value ) { element = $.getElement( element ); - if ( typeof element.style.pointerEvents !== 'undefined' ) { + if (typeof element.style !== 'undefined' && typeof element.style.pointerEvents !== 'undefined' ) { element.style.pointerEvents = value; } },