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

Should phet-io capture dragging and/or animation? #193

Closed jbphet closed 5 months ago

jbphet commented 6 months ago

We - meaning @marlitas, @amanda-phet, @zepumph, and I - had a meeting earlier this morning to discuss the question in the title of this issue. I wanted to record the results.

The short answer is "no".

The longer answer is that for the dragging that can occur in the Leveling Out screen, we should capture the state as though the candy bar wasn't being dragged at all, and is still on the plate of origin. When it is released and animated to a different stack, the state should just capture the destination, and the animation does not need to be captured in the state at all.

For the Fair Share screen, none of the animations need to be captured, and the state should simply be set as the destination values for the apples as they are moved around for the various modes.

I'll leave this open until we have the described behavior working.

jbphet commented 5 months ago

This is now working (thanks @marlitas!), so I'm going to go ahead and close.