diff --git a/src/viewer.js b/src/viewer.js index 6dfa5c7c..723a4b65 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -234,7 +234,7 @@ $.Viewer = function( options ) { style.left = "0px"; }(this.canvas.style)); $.setElementTouchActionNone( this.canvas ); - this.canvas.tabIndex = options.tabIndex || 0; + this.canvas.tabIndex = (options.tabIndex === undefined ? 0 : options.tabIndex); //the container is created through applying the ControlDock constructor above this.container.className = "openseadragon-container";