diff --git a/js/listeners/AnimatedPanZoomListener.js b/js/listeners/AnimatedPanZoomListener.js index 59f079cb1..e0dd6116c 100644 --- a/js/listeners/AnimatedPanZoomListener.js +++ b/js/listeners/AnimatedPanZoomListener.js @@ -313,8 +313,8 @@ class AnimatedPanZoomListener extends PanZoomListener { // on any keyboard reposition interrupt the middle press panning this.cancelMiddlePress(); - const displayAccessible = phet.joist.sim.display._accessible; - if ( !displayAccessible || !phet.joist.sim.display.accessibleDOMElement.contains( domEvent.target ) ) { + const displayAccessible = phet.joist.display._accessible; + if ( !displayAccessible || !phet.joist.display.accessibleDOMElement.contains( domEvent.target ) ) { this.handleZoomCommands( domEvent ); // handle translation without worry of the pointer being attached because there is no pointer at this level