Skip to content

Commit

Permalink
allowTouchSnag set to false for KitView and KitPlayArea AtomNodes #161
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Mar 4, 2020
1 parent 200da18 commit 4910266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/common/view/BAMScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ class BAMScreenView extends ScreenView {
const atomListener = new DragListener( {
transform: BAMConstants.MODEL_VIEW_TRANSFORM,
targetNode: atomNode,
allowTouchSnag: false,
dragBoundsProperty: new Property( this.atomDragBounds ),
positionProperty: atom.positionProperty,
start: () => {
Expand Down
2 changes: 2 additions & 0 deletions js/common/view/KitView.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ class KitView extends Node {
atomNode.dragListener.press( event, atomNode );
}
}
}, {
allowTouchSnag: false
} ) );
};

Expand Down

0 comments on commit 4910266

Please sign in to comment.