Skip to content

Commit

Permalink
Changed API of SimpleDragHandler.createForwardingListener, see #639
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jul 20, 2017
1 parent 6631254 commit 55ec14d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/input/SimpleDragHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ define( function( require ) {
/**
* Creates an input listener that forwards events to the specified input listener
* See https://github.com/phetsims/scenery/issues/639
* @param {Object} inputListener - input listener
* @param {function(Event)} down - down function to be added to the input listener
* @param {Object} [options]
* @returns {Object} inputListener
* @returns {Object} a scenery input listener
*/
createForwardingListener: function( inputListener, options ) {
createForwardingListener: function( down, options ) {

options = _.extend( {
allowTouchSnag: false
Expand All @@ -260,7 +260,7 @@ define( function( require ) {
return {
down: function( event ) {
if ( !event.pointer.dragging && event.canStartPress() ) {
inputListener.down( event );
down( event );
}
},
touchenter: function( event ) {
Expand Down

0 comments on commit 55ec14d

Please sign in to comment.