Skip to content

Commit

Permalink
accessibility check for preventing dispatch, see #1001
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg authored and zepumph committed Oct 14, 2019
1 parent a9bc7f2 commit 35c9365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ define( require => {
// dispatch this since the PDOM should only handle Input.A11Y_EVENT_TYPES, and all other pointer input should
// go through the Display div. Otherwise, activation could be duplicated while we handle both. See
// https://github.com/phetsims/scenery/issues/1001
if ( this.display.accessibleDOMElement.contains( event.target ) ) {
if ( this.display._accessible && this.display.accessibleDOMElement.contains( event.target ) ) {
return;
}

Expand Down Expand Up @@ -1559,7 +1559,7 @@ define( require => {
// dispatch this since the PDOM should only handle Input.A11Y_EVENT_TYPES, and all other pointer input should
// go through the Display div. Otherwise, activation could be duplicated while we handle both. See
// https://github.com/phetsims/scenery/issues/1001
if ( this.display.accessibleDOMElement.contains( event.target ) ) {
if ( this.display._accessible && this.display.accessibleDOMElement.contains( event.target ) ) {
return;
}
}
Expand Down

0 comments on commit 35c9365

Please sign in to comment.