Open Nancy-Salpepi opened 1 week ago
I see this in the 4th screen as well.
Reproduced in main.
Note that #276 and #280 are both bad State Wrapper behavior when the sim is paused, and both related to the position of particles.
This is probably related to incorrect or missing use(s) of isSettingPhetioStateProperty
, in relation to isPlayingProperty
.
Test device MacBook Air M1 chip
Operating System 14.5
Browser Safari 17.5
Problem description For https://github.com/phetsims/qa/issues/1100, and possibly related to https://github.com/phetsims/gas-properties/issues/269 in the State Wrapper on all screens, the first time I set state with the sim paused, the state of the particles in the downstream sim matches the upstream. If I unpause the upstream sim and allow the particles to move a bit before pausing again, the downstream sim will not match the upstream sim when setting state. Everything else does update (the graphs, pressure, temperature etc). Once I press play, the particles in the downstream sim update. On Reset All the state is correctly set. This also happens whens I resize the container. It will not update the second time I set state.
Steps to reproduce Here is an example:
Visuals
https://github.com/phetsims/gas-properties/assets/87318828/e252a7c1-f86d-4f39-bc44-42f5e48d0761