phetsims / mean-share-and-balance

"Mean: Share and Balance" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
2 stars 1 forks source link

mouseSortCueVisibleProperty re-entry during reset #228

Closed marlitas closed 1 month ago

marlitas commented 2 months ago

The start-up value for mouseSortCueVisibleProperty is false in the GroupSortInteractionModel. This means that during reset a sim that wants to show the mouseSortCue from the beginning will hit a re-entry scenario. This did not happen in center-and-variability, because the mouseSortCue doesn't appear until all balls have been kicked out.

marlitas commented 2 months ago

I created an option in GroupSortInteractionModel so that the client can determine the startup value of the visibleProperty as needed. Over to @zepumph for review.

zepumph commented 2 months ago

Yeah, looks great thanks.

marlitas commented 1 month ago

Great! This is ready to close.