Skip to content

Commit

Permalink
Added docs, see #86
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 21, 2017
1 parent 8632522 commit 36dcc89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/faradays-law/model/FaradaysLawModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ define( function( require ) {
*/
moveMagnetToPosition: function( position ) {

// TODO: why do we subtract 1 from each of these dimensions?
// Check the bounds of the magnet, but subtract 1 to prevent it from passing through the coils vertically
// see https://github.com/phetsims/faradays-law/issues/47
var magnetBounds = new Bounds2(
Math.min( position.x, this.magnet.positionProperty.get().x ),
Math.min( position.y, this.magnet.positionProperty.get().y ),
Expand Down

0 comments on commit 36dcc89

Please sign in to comment.