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 f914e29 commit b622322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/common/view/AbstractCoinTermNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ define( function( require ) {
var Property = require( 'AXON/Property' );
var Rectangle = require( 'SCENERY/nodes/Rectangle' );
var Timer = require( 'PHET_CORE/Timer' );
var Touch = require( 'SCENERY/input/Touch' );
var Vector2 = require( 'DOT/Vector2' );

// constants
Expand Down Expand Up @@ -361,7 +362,7 @@ define( function( require ) {
startDrag: function( event ) {

// offset things a little in touch mode for better visibility while dragging
if ( event.pointer.isTouch ) {
if ( event.pointer instanceof Touch ) {
var position = self.globalToParentPoint( event.pointer.point );
var adjustedPosition = position.plusXY( 0, TOUCH_DRAG_Y_OFFSET );
if ( dragBounds.containsPoint( adjustedPosition ) ) {
Expand Down

0 comments on commit b622322

Please sign in to comment.