Skip to content

Commit

Permalink
Only step if dt > 0, see phetsims/gas-properties#138
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 27, 2019
1 parent bf09a94 commit 1f1714e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ define( function( require ) {
var dt = elapsedTimeMilliseconds / 1000.0;

// Don't run the simulation on steps back in time (see https://github.com/phetsims/joist/issues/409)
if ( dt >= 0 ) {
if ( dt > 0 ) {
this.stepSimulation( dt );
}
},
Expand Down

0 comments on commit 1f1714e

Please sign in to comment.