Open pixelzoom opened 3 years ago
If there are questions about the model used by ZoomButtonGroup, these comments should be reviewed:
https://github.com/phetsims/scenery-phet/issues/652#issuecomment-778893088 https://github.com/phetsims/scenery-phet/issues/652#issuecomment-778912954 https://github.com/phetsims/scenery-phet/issues/652#issuecomment-778913045
@jonathanolson let's use this variety
This is one of those sims where it (a) supports fractional zooms for phet-io and (b) uses the multiplier approach mentioned in https://github.com/phetsims/scenery-phet/issues/652#issuecomment-778893088.
Since it's not currently compatible, I'm going to defer this (as suggested in https://github.com/phetsims/scenery-phet/issues/652#issuecomment-778912954).
Common code will now allow this refactor.
From https://github.com/phetsims/scenery-phet/issues/652, this sim is a candidate for converting to one of the ZoomButtonGroup subclasses. The Buttons screen of the scenery-phet demo shows the 2 subclasses (screenshot below), PlusMinusZoomButtonGroup on the left, MagnifyingGlassZoomButtonGroup. If you don't want to change the look of the sim, use MagnifyingGlassZoomButtonGroup. If you think the more modern-looking PlusMinusZoomButtonGroup is more appropriate, consult with your sim designer.