Skip to content

Commit

Permalink
don't alert left/right when amplitude is not settled, #136
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 28, 2018
1 parent b8412d4 commit 292cc1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/friction/view/describers/BookMovementDescriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ define( require => {

// if both the left and right alerts haven't yet been alerted while separated
if ( !this.separatedAlertPair.bothAlerted() ) {
this.alertDirections( direction );

if ( this.model.amplitudeProperty.value < FrictionModel.AMPLITUDE_SETTLED_THRESHOLD ) {
this.alertDirections( direction );
}
this.separatedAlertPair.updateFromDirection( direction );
}

Expand Down

0 comments on commit 292cc1c

Please sign in to comment.