Skip to content

Commit

Permalink
Keep at least 3 deltas, see #319
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 23, 2019
1 parent 6a5f4fa commit 65d3eb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/common/model/TemporalMask.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ define( require => {

const steps = numberOfSteps - delta.numberOfSteps;

// max numberOfSteps is across the diagonal of the lattice, but don't remove the last element or the wave could
// clear
if ( this.deltas.length > 1 &&
// max numberOfSteps is across the diagonal of the lattice, but don't remove the last elements or the wave could
// clear, see https://github.com/phetsims/wave-interference/issues/319
if ( this.deltas.length > 3 &&

// d = vt, t=d/v
( steps > maxDistance / Lattice.WAVE_SPEED ||
Expand Down

0 comments on commit 65d3eb3

Please sign in to comment.