Skip to content

Commit

Permalink
Clear dt after every re-render of the steam bubbles, see #190
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Jan 25, 2019
1 parent 66d52d6 commit d5a5e63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/common/view/SteamCanvasNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ define( function( require ) {
}
this.drawSteamBubble( context, this.steamBubbles[ i ] );
}

//TODO: why is paintCanvas being called when the sim is paused and the beakers are being dragged?
// see https://github.com/phetsims/energy-forms-and-changes/issues/190#issuecomment-457755051
// clear the most recent dt value after it is used
this.dt = 0;
},

/*
Expand Down

0 comments on commit d5a5e63

Please sign in to comment.