Skip to content

Commit

Permalink
link view.*PointToolNode to model.*PointTool, #191
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jun 19, 2023
1 parent 14ef43d commit 32344a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/common/view/PointToolNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,16 @@ export default class PointToolNode extends Node {
// add the drag listener
this.addInputListener( new PointToolDragListener( this, pointTool, modelViewTransform, graph,
graphContentsVisibleProperty, {
tandem: options.tandem.createTandem( 'dragListener' )
tandem: this.tandem.createTandem( 'dragListener' )
} ) );

// put a red dot at the origin, for debugging positioning
if ( GQQueryParameters.showOrigin ) {
this.addChild( new Circle( 3, { fill: 'red' } ) );
}

// Requested in https://github.com/phetsims/graphing-quadratics/issues/191
this.addLinkedElement( pointTool );
}

public override dispose(): void {
Expand Down

0 comments on commit 32344a2

Please sign in to comment.