Skip to content

Commit

Permalink
guarantee that point tools will start below graph, #98
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Nov 2, 2018
1 parent a56c065 commit c1c4676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/model/GQModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ define( require => {
// @public (read-only)
this.leftPointTool = new PointTool( pointToolQuadraticsProperty, this.graph, {
probeSide: 'right', // probe is attached to the right side
location: new Vector2( -2, -12 ),
location: new Vector2( -2, this.graph.yRange.min - 2 ), // below the graph
dragBounds: new Bounds2(
this.graph.xRange.min - 1, this.graph.yRange.min - 3,
this.graph.xRange.max + 1, this.graph.yRange.max + 1 ),
Expand All @@ -97,7 +97,7 @@ define( require => {
// @public (read-only)
this.rightPointTool = new PointTool( pointToolQuadraticsProperty, this.graph, {
probeSide: 'left', // probe is attached to the left side
location: new Vector2( 2, -12 ),
location: new Vector2( 2, this.graph.yRange.min - 2 ), // below the graph
dragBounds: new Bounds2(
this.graph.xRange.min - 1, this.graph.yRange.min - 3,
this.graph.xRange.max + 1, this.graph.yRange.max + 1 ),
Expand Down

0 comments on commit c1c4676

Please sign in to comment.