fixed tabIndex to handle empty string

chrome acts buggy and jumps when tabindex is not set to empty string.

fixes #769
This commit is contained in:
accraze 2015-12-22 16:55:08 -08:00
parent c4b1e05e25
commit 3925d1cb14

View File

@ -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 || 0 || "" ;
//the container is created through applying the ControlDock constructor above
this.container.className = "openseadragon-container";