Skip to content

Commit

Permalink
Don't attach the eye dropper button, so it can be dragged with input …
Browse files Browse the repository at this point in the history
…listeners at the same time. See phetsims/ph-scale#86
  • Loading branch information
jonathanolson authored and pixelzoom committed Jul 23, 2019
1 parent acdca78 commit 1408043
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/EyeDropperNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ define( function( require ) {
var button = new RoundMomentaryButton( false, true, this.dispensingProperty, {
baseColor: 'red',
radius: 18,
listenerOptions: {
// We want to be able to drag the dropper WHILE dispensing, see https://github.com/phetsims/ph-scale/issues/86
attach: false
},
tandem: options.tandem.createTandem( 'button' )
} );
var enabledObserver = function( enabled ) { button.enabled = enabled; };
Expand Down

0 comments on commit 1408043

Please sign in to comment.