Skip to content

Commit

Permalink
use transformSourceNode to specify the source of transforms, see
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Nov 25, 2019
1 parent 5bb9747 commit 45ef103
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/accessibility/GrabDragInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ define( require => {

// @private - Make the draggable focusHighlight in the spitting image of the node's
this.dragFocusHighlight = new FocusHighlightPath( this.grabFocusHighlight.shape, {
visible: false
visible: false,
transformSourceNode: this.grabFocusHighlight.transformSourceNode || node
} );

// Update the passed in node's focusHighlight to make it dashed for the "grabbed" mode
Expand Down Expand Up @@ -415,7 +416,9 @@ define( require => {
if ( node.focusHighlightLayerable ) {
assert && assert( this.grabFocusHighlight.parent, 'how can we have focusHighlightLayerable with a ' +
'node that is not in the scene graph?' );
this.grabFocusHighlight.parent.removeChild( this.dragFocusHighlight );
if ( this.grabFocusHighlight.parent.hasChild( this.dragFocusHighlight ) ) {
this.grabFocusHighlight.parent.removeChild( this.dragFocusHighlight );
}
}

// remove cue references
Expand Down

1 comment on commit 45ef103

@zepumph
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.