Skip to content

Commit

Permalink
Passive events and testing for #88
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Apr 15, 2020
1 parent 9285a2c commit b90840f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/local-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ const reportProperty = new axon.Property( {
})();

const rootNode = new scenery.Node();
const display = new scenery.Display( rootNode );
const display = new scenery.Display( rootNode, {
passiveEvents: true
} );

document.body.appendChild( display.domElement );

Expand All @@ -87,7 +89,8 @@ reportProperty.link( report => {
spacing: 2,
children: [
...new Date( 1586988043041 ).toLocaleString().replace( ',', '' ).replace( ' AM', 'am' ).replace( ' PM', 'pm' ).split( ' ' ).map( str => new scenery.Text( str, { fontSize: 10 } ) )
]
],
cursor: 'pointer'
} ) );

const maxTestLabelWidth = _.max( testLabels.map( node => node.width ) );
Expand Down

0 comments on commit b90840f

Please sign in to comment.