Skip to content

Commit

Permalink
#43 add blank lines before comments
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Nov 6, 2018
1 parent 2b456fc commit 4061eb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/common/view/PointToolNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,13 @@ define( require => {

allowTouchSnag: true,

//REVIEW: Blank lines should be added before the two comments in start() unless there is a reason not to.
// note where the drag started
start: ( event, listener ) => {

// Note the mouse-click offset when dragging starts.
let location = modelViewTransform.modelToViewPosition( pointTool.locationProperty.value );
startOffset = targetNode.globalToParentPoint( event.pointer.point ).minus( location );

// Move the tool that we're dragging to the foreground.
event.currentTarget.moveToFront();
},
Expand Down

0 comments on commit 4061eb6

Please sign in to comment.