Compare commits

...

3 Commits

Author SHA1 Message Date
Ian Gilman
449c709dcc Changelog for #2145 2022-05-02 14:35:30 -07:00
Ian Gilman
3aca527360
Merge pull request #2145 from tdiprima/patch-1
updated conditional expression
2022-05-02 14:33:57 -07:00
Tammy DiPrima
e1b651b66c
update expression
Code fails if element.style is undefined.
2022-04-13 13:33:44 -04:00
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ OPENSEADRAGON CHANGELOG
* Fixed an issue where full page mode wouldn't grow properly if you resized the window (#2100 @TanukiSharp)
* Tile cache keys are now generated by the tile source, so it's easier to override them as needed (#2138 @Aiosa)
* Now if you pass an error handler into makeAjaxRequest, it doesn't report errors into the console (#2142 @Aiosa)
* Fixed error caused by attaching MouseTracker to the page's document element (#2145 @tdiprima)
3.0.0:

View File

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