Skip to content

Commit

Permalink
replace MovableDragHandler with DragListener, phetsims/projectile-mot…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 8, 2019
1 parent e5144c3 commit a195c8b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions js/listeners/DragListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,30 @@ define( require => {
},
get dragBounds() { return this.getDragBounds(); },

/**
* Sets the drag transform of the listener.
* @public
*
* @param {Bounds2} transform
*/
setTransform: function( transform ) {
assert && assert( transform instanceof Transform3 );

this._transform = transform;
},
set transform( transform ) { this.setTransform( transform ); },

/**
* Returns the transform of the listener.
* @public
*
* @returns {Transform3}
*/
getTransform: function() {
return this._transform;
},
get transform() { return this.getTransform(); },

/**
* Interrupts the listener, releasing it (canceling behavior).
* @public
Expand Down

0 comments on commit a195c8b

Please sign in to comment.