From 06b5773eb59d26fe0d3f7a26d0f483639b222ad1 Mon Sep 17 00:00:00 2001 From: zepumph Date: Mon, 28 Feb 2022 19:36:39 -0700 Subject: [PATCH] instrument KeyboardDragListener, and pass tandem to all usages, https://github.com/phetsims/scenery/issues/1313 --- js/discrete/view/DiscreteMeasurementToolNode.js | 3 ++- js/wavepacket/view/WavePacketMeasurementToolNode.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/discrete/view/DiscreteMeasurementToolNode.js b/js/discrete/view/DiscreteMeasurementToolNode.js index 0b33ca54..1c55cb18 100644 --- a/js/discrete/view/DiscreteMeasurementToolNode.js +++ b/js/discrete/view/DiscreteMeasurementToolNode.js @@ -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 ); diff --git a/js/wavepacket/view/WavePacketMeasurementToolNode.js b/js/wavepacket/view/WavePacketMeasurementToolNode.js index 9d808b40..6c8dc223 100644 --- a/js/wavepacket/view/WavePacketMeasurementToolNode.js +++ b/js/wavepacket/view/WavePacketMeasurementToolNode.js @@ -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 );