Skip to content

Commit

Permalink
use object and attribute options for animation targets, phetsims/twix…
Browse files Browse the repository at this point in the history
…t#18

Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Aug 25, 2018
1 parent eb9598a commit a5deac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/DoubleNumberLineAccordionBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ define( function( require ) {
stepper: 'timer', // animation is controlled by the global phet-core Timer
duration: 0.002 * Math.abs( destinationX - markerEditorNode.x ), // 2ms per 1 unit of distance
easing: Easing.QUADRATIC_IN_OUT,
setValue: function( value ) { markerEditorNode.x = value; },
getValue: function() { return markerEditorNode.x; },
object: markerEditorNode,
attribute: 'x',
to: destinationX
} );

Expand Down

0 comments on commit a5deac3

Please sign in to comment.