Skip to content

Commit

Permalink
converted magnitudeSquared to standard getter pattern, see phetsims/d…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Mar 6, 2019
1 parent 7d7439d commit ccdea51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/OnOffSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ define( function( require ) {

translate: function( params ) {
accumulatedDelta.add( params.delta );
passedDragThreshold = passedDragThreshold || ( accumulatedDelta.magnitudeSquared() > dragThresholdSquared );
passedDragThreshold = passedDragThreshold || ( accumulatedDelta.magnitudeSquared > dragThresholdSquared );
}
} ) );

Expand Down

0 comments on commit ccdea51

Please sign in to comment.