Skip to content

Commit

Permalink
Nest magnifying glass options, see phetsims/circuit-construction-kit-…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 14, 2020
1 parent 216950a commit 6899c4c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/common/view/graph/ZoomButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class ZoomButtonGroup extends HBox {

const zoomOutButton = new ZoomButton( {
in: false,
magnifyingGlassRadius: MAGNIFYING_GLASS_RADIUS,
magnifyingGlassOptions:{
glassRadius: MAGNIFYING_GLASS_RADIUS
},
listener: () => exponentProperty.set( exponentProperty.get() + 1 ),
enabledPropertyOptions: { phetioReadOnly: true },
tandem: options.tandem.createTandem( 'zoomOutButton' ),
Expand All @@ -45,7 +47,9 @@ class ZoomButtonGroup extends HBox {

const zoomInButton = new ZoomButton( {
in: true,
magnifyingGlassRadius: MAGNIFYING_GLASS_RADIUS,
magnifyingGlassOptions:{
glassRadius: MAGNIFYING_GLASS_RADIUS
},
listener: () => exponentProperty.set( exponentProperty.get() - 1 ),
enabledPropertyOptions: { phetioReadOnly: true },
tandem: options.tandem.createTandem( 'zoomInButton' ),
Expand Down

0 comments on commit 6899c4c

Please sign in to comment.