Skip to content

Commit

Permalink
add grab/drag interaction to #140
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 16, 2019
1 parent 71a27ca commit 985a562
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/gravity-force-lab/view/GravityForceLabScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ define( function( require ) {
controlAreaNode.addChild( parameterControlPanel );

var resetAllButton = new ResetAllButton( {
listener: function() { model.reset(); },
listener: function() {
model.reset();
gravityForceLabRuler.reset();
},
scale: 0.81,
tandem: tandem.createTandem( 'resetAllButton' )
} );
Expand All @@ -259,7 +262,7 @@ define( function( require ) {
this.addChild( gridNode );
}

model.forceValuesProperty.link( function ( showValues ) {
model.forceValuesProperty.link( function( showValues ) {
checkboxItems[ 2 ].enabled = showValues;
} );

Expand Down

0 comments on commit 985a562

Please sign in to comment.