diff --git a/js/input/SimpleDragHandler.js b/js/input/SimpleDragHandler.js index 9d8840ce8..3c33a2dce 100644 --- a/js/input/SimpleDragHandler.js +++ b/js/input/SimpleDragHandler.js @@ -196,7 +196,18 @@ define( function( require ) { tandem: options.tandem.createTandem( 'dragEndedEmitter' ), // TODO: use of both of these is redundant, and should get fixed with https://github.com/phetsims/axon/issues/194 - argumentTypes: [ { valueType: Vector2 }, { isValidValue: function( value ) { return value === null || value instanceof Event; } } ], + argumentTypes: [ + { valueType: Vector2 }, + { + isValidValue: function( value ) { + return value === null || value instanceof Event || + + // When interrupted, an object literal is used to signify the interruption, + // see SimpleDragHandler.interrupt + ( value.pointer && value.currentTarget ); + } + } + ], phetioType: EmitterIO( [ { name: 'point', type: Vector2IO, documentation: 'the position of the drag end in view coordinates' }, { name: 'event', type: VoidIO, documentation: 'the scenery pointer Event' } ] ),