Skip to content

Commit

Permalink
instrument KeyboardDragListener, and pass tandem to all usages, phets…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 1, 2022
1 parent d37d789 commit 06b5773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/discrete/view/DiscreteMeasurementToolNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ class DiscreteMeasurementToolNode extends Node {
positionProperty: positionProperty,
dragBoundsProperty: dragBoundsProperty,
dragVelocity: 100, // velocity - change in position per second
shiftDragVelocity: 20 // finer-grained
shiftDragVelocity: 20, // finer-grained
tandem: options.tandem.createTandem( 'keyboardDragListener' )
} );
this.addInputListener( keyboardDragListener );

Expand Down
3 changes: 2 additions & 1 deletion js/wavepacket/view/WavePacketMeasurementToolNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ class WavePacketMeasurementToolNode extends Node {
positionProperty: positionProperty,
dragBoundsProperty: dragBoundsProperty,
dragVelocity: 100, // velocity - change in position per second
shiftDragVelocity: 20 // finer-grained
shiftDragVelocity: 20, // finer-grained
tandem: options.tandem.createTandem( 'keyboardDragListener' )
} );
this.addInputListener( keyboardDragListener );

Expand Down

0 comments on commit 06b5773

Please sign in to comment.