Skip to content

Commit

Permalink
Instrument totalDragDistanceProperty, see #103
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 22, 2023
1 parent 15b68b0 commit eacb9d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/common/view/CardNodeContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ export default class CardNodeContainer extends Node {

// TODO-UX: maybe this should be converted to track distance for individual cards, see https://github.com/phetsims/center-and-variability/issues/150
// Accumulated card drag distance, for purposes of hiding the drag indicator node
const totalDragDistanceProperty = new NumberProperty( 0 );
const totalDragDistanceProperty = new NumberProperty( 0, {
tandem: options.tandem.createTandem( 'totalDragDistanceProperty' ),
phetioReadOnly: true,
phetioDocumentation: 'For PhET-iO internal use only. Accumulated card drag distance, for purposes of hiding the drag indicator node'
} );
this.hasDraggedCardProperty = new DerivedProperty( [ totalDragDistanceProperty ], totalDragDistance => {
return totalDragDistance > 15;
} );
Expand Down

0 comments on commit eacb9d5

Please sign in to comment.