Skip to content

Commit

Permalink
refactor so ruler drag bounds are calculated in the screen view, phet…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 18, 2019
1 parent 29afd70 commit 79465c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/friction/view/book/BookNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ define( require => {
this.addChild( focusHighlightRect );
this.focusHighlight = focusHighlightRect; // this is a constraint of the grab/drag interaction;

// a11y
// @private - a11y
this.a11yGrabDragInteractionNode = new FrictionGrabDragInteraction( model, this, {
objectToGrabString: chemistryBookString,

Expand Down Expand Up @@ -171,6 +171,10 @@ define( require => {
friction.register( 'BookNode', BookNode );

return inherit( Node, BookNode, {

/**
* @public
*/
reset: function() {
this.a11yGrabDragInteractionNode.reset();
}
Expand Down

0 comments on commit 79465c5

Please sign in to comment.