Skip to content

Commit

Permalink
Removing pointer type shortcuts, see phetsims/scenery#724
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jan 17, 2018
1 parent 6055217 commit aa93da5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/view/CircuitElementToolNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ define( function( require ) {
var inherit = require( 'PHET_CORE/inherit' );
var SimpleDragHandler = require( 'SCENERY/input/SimpleDragHandler' );
var Text = require( 'SCENERY/nodes/Text' );
var Touch = require( 'SCENERY/input/Touch' );
var VBox = require( 'SCENERY/nodes/VBox' );

// constants
Expand Down Expand Up @@ -62,7 +63,7 @@ define( function( require ) {

// Adjust for touch. The object should appear centered on the mouse but vertically above the finger so the finger
// doesn't obscure the object
viewPosition.y = viewPosition.y - ( event.pointer.isTouch ? 28 : 0 );
viewPosition.y = viewPosition.y - ( event.pointer instanceof Touch ? 28 : 0 );

// Create the new CircuitElement at the correct location
var circuitElement = createElement( viewPosition, event );
Expand Down

0 comments on commit aa93da5

Please sign in to comment.