From b6223223d9741e99baabc4548234e3c91d634534 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Wed, 17 Jan 2018 12:18:42 -0700 Subject: [PATCH] Removing pointer type shortcuts, see https://github.com/phetsims/scenery/issues/724 --- js/common/view/AbstractCoinTermNode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/common/view/AbstractCoinTermNode.js b/js/common/view/AbstractCoinTermNode.js index 71160550..104eb8cf 100644 --- a/js/common/view/AbstractCoinTermNode.js +++ b/js/common/view/AbstractCoinTermNode.js @@ -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 @@ -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 ) ) {