Skip to content

Commit

Permalink
add tandem for push button, see #128
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Feb 26, 2025
1 parent d2c4ba9 commit d94cd52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/photons/view/LaserNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export default class LaserNode extends Node {
fireOnDown: true,
listener: () => model.emitAPhoton(),
centerX: -( NOZZLE_SIZE.width + LASER_BODY_SIZE.width / 2 ),
touchAreaDilation: 15
touchAreaDilation: 15,
tandem: providedOptions.tandem.createTandem( 'emitPhotonButton' )
} ) );
}

Expand All @@ -63,8 +64,8 @@ export default class LaserNode extends Node {
children: laserPointerNodeChildren,
right: modelViewTransform.modelToViewX( model.position.x ) + NOZZLE_SIZE.width,
centerY: modelViewTransform.modelToViewY( model.position.y ),
tandem: providedOptions.tandem.createTandem( 'laserPointerNode' ),
phetioVisiblePropertyInstrumented: false
phetioVisiblePropertyInstrumented: false,
tandem: providedOptions.tandem.createTandem( 'laserPointerNode' )
} );
const caption = new Text( QuantumMeasurementStrings.photonSourceStringProperty, {
font: new PhetFont( 12 ),
Expand Down

0 comments on commit d94cd52

Please sign in to comment.