From 1f1714eae784ad10521d44e112cf809c9bac8ec4 Mon Sep 17 00:00:00 2001 From: samreid Date: Thu, 27 Jun 2019 13:28:28 -0600 Subject: [PATCH] Only step if dt > 0, see https://github.com/phetsims/gas-properties/issues/138 --- js/Sim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Sim.js b/js/Sim.js index 1854ad65..fdc01542 100644 --- a/js/Sim.js +++ b/js/Sim.js @@ -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 ); } },