From d394b9df8fad4f5187af87bc28cd0f39543a4c3c Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 25 Oct 2017 09:30:56 -0800 Subject: [PATCH] don't add focus highlight as a child in NumberControl, https://github.com/phetsims/scenery-phet/issues/341 --- js/NumberControl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/NumberControl.js b/js/NumberControl.js index 78714abba..815401ea2 100644 --- a/js/NumberControl.js +++ b/js/NumberControl.js @@ -209,7 +209,7 @@ define( function( require ) { innerStroke: FocusHighlightPath.FOCUS_COLOR, // make both the inner and outer focus color be the same visible: false }, true ); - this.addChild( numberControlFocusHighlightBorder ); + // this.addChild( numberControlFocusHighlightBorder ); // TODO: don't change the bounds of NumberControl by adding this, see https://github.com/phetsims/scenery-phet/issues/341 slider.focusChangedEmitter.addListener( function( isFocused ) { numberControlFocusHighlightBorder.visible = isFocused; } );