diff --git a/js/building/view/NumberPieceNode.js b/js/building/view/NumberPieceNode.js index bc1abfe..afaaabb 100644 --- a/js/building/view/NumberPieceNode.js +++ b/js/building/view/NumberPieceNode.js @@ -9,7 +9,6 @@ import Property from '../../../../axon/js/Property.js'; import Vector2 from '../../../../dot/js/Vector2.js'; import merge from '../../../../phet-core/js/merge.js'; -import Touch from '../../../../scenery/js/input/Touch.js'; import DragListener from '../../../../scenery/js/listeners/DragListener.js'; import Node from '../../../../scenery/js/nodes/Node.js'; import Rectangle from '../../../../scenery/js/nodes/Rectangle.js'; @@ -92,7 +91,7 @@ class NumberPieceNode extends Node { transform: options.modelViewTransform, positionProperty: numberPiece.positionProperty, start: event => { - wasTouch = event.pointer instanceof Touch; + wasTouch = event.pointer.isTouchLike(); }, end: () => { options.dropListener && options.dropListener( wasTouch ); diff --git a/js/building/view/ShapePieceNode.js b/js/building/view/ShapePieceNode.js index 89a4c3c..790a443 100644 --- a/js/building/view/ShapePieceNode.js +++ b/js/building/view/ShapePieceNode.js @@ -10,7 +10,6 @@ import Property from '../../../../axon/js/Property.js'; import Vector2 from '../../../../dot/js/Vector2.js'; import Shape from '../../../../kite/js/Shape.js'; import merge from '../../../../phet-core/js/merge.js'; -import Touch from '../../../../scenery/js/input/Touch.js'; import DragListener from '../../../../scenery/js/listeners/DragListener.js'; import Circle from '../../../../scenery/js/nodes/Circle.js'; import Node from '../../../../scenery/js/nodes/Node.js'; @@ -138,7 +137,7 @@ class ShapePieceNode extends Node { transform: options.modelViewTransform, positionProperty: shapePiece.positionProperty, start: event => { - wasTouch = event.pointer instanceof Touch; + wasTouch = event.pointer.isTouchLike(); }, end: () => { options.dropListener && options.dropListener( wasTouch );