Skip to content

Commit

Permalink
tweak pointer areas for zoom buttons and eye toggles, #267
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 8, 2023
1 parent 305e22e commit 5e454d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/common/view/GraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ export default class GraphNode extends Node {
scale: 0.5,
baseColor: new DerivedProperty( [ this.curveLayerVisibleProperty ],
visible => visible ? 'white' : PhetColorScheme.BUTTON_YELLOW ),
touchAreaXDilation: 8,
touchAreaYDilation: 8,
tandem: options.tandem.createTandem( 'eyeToggleButton' )
} );

Expand All @@ -258,6 +260,8 @@ export default class GraphNode extends Node {
buttonOptions: {
stroke: 'black'
},
touchAreaXDilation: 6,
touchAreaYDilation: 3,
tandem: options.tandem.createTandem( 'yZoomButtonGroup' )
} ) : null;

Expand Down

0 comments on commit 5e454d8

Please sign in to comment.