From 3925d1cb14b7f6125480612e46c9e08cbdf64c95 Mon Sep 17 00:00:00 2001 From: accraze Date: Tue, 22 Dec 2015 16:55:08 -0800 Subject: [PATCH] fixed tabIndex to handle empty string chrome acts buggy and jumps when tabindex is not set to empty string. fixes #769 --- src/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer.js b/src/viewer.js index 6dfa5c7c..165938c5 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 || 0 || "" ; //the container is created through applying the ControlDock constructor above this.container.className = "openseadragon-container";