Skip to content

Commit

Permalink
remove svg from tab order in IE11 full screen mode, see phetsims/john…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 13, 2017
1 parent 163c0a1 commit 0589c10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/display/SVGBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ define( function( require ) {
this.svg.style.left = '0';
this.svg.style.top = '0';

// a11y - make sure the element is not focusable (it is focusable by default in IE11 full screen mode)
this.svg.setAttribute( 'focusable', false );

//OHTWO TODO: why would we clip the individual layers also? Seems like a potentially useless performance loss
// this.svg.style.clip = 'rect(0px,' + width + 'px,' + height + 'px,0px)';
this.svg.style[ 'pointer-events' ] = 'none';
Expand Down

0 comments on commit 0589c10

Please sign in to comment.