Skip to content

Commit

Permalink
Gave particle nodes touch snag
Browse files Browse the repository at this point in the history
See #243
  • Loading branch information
Saurabh Totey authored and Saurabh Totey committed Jul 1, 2019
1 parent f30110f commit 4b3dc40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/atomic-interactions/view/GrabbableParticleNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ define( function( require ) {
var initialStartX = this.x;

var inputListener = new SimpleDragHandler( {
allowTouchSnag: true,

start: function( event ) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ define( function( require ) {
this.positionMarker.setPickable( true );
this.positionMarker.touchArea = Shape.circle( 0, 0, 13 );
this.positionMarker.addInputListener( new SimpleDragHandler( {
allowTouchSnag: true,

start: function( event ) {
// Stop the particle from moving in the model.
Expand Down

0 comments on commit 4b3dc40

Please sign in to comment.