Skip to content

Commit

Permalink
accessible dom under the display's dom element, see phetsims/john-tra…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 11, 2017
1 parent 17b5a7e commit 12ae650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/display/Display.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ define( function( require ) {
'Display root instance: ' + this._rootAccessibleInstance.toString() );
this._rootAccessibleInstance.addSubtree( new scenery.Trail( this._rootNode ) );

document.body.appendChild( this._rootAccessibleInstance.peer.domElement );
// add the accessible DOM as a child of this DOM element
this._domElement.appendChild( this._rootAccessibleInstance.peer.domElement );
}
}

Expand Down

0 comments on commit 12ae650

Please sign in to comment.