Closed pixelzoom closed 5 months ago
Fixed in the above commit. The model was being updated correctly, but I needed to explicitly tell the view to update when the sim is paused. In IdealGasLawScreenView:
model.particleSystem.redistributeParticles( model.container.widthProperty.value / startContainerWidth );
+ if ( !model.isPlayingProperty.value ) {
+ particleSystemNode.update();
+ }
Closing.
Noticed while working on https://github.com/phetsims/gas-properties/issues/263.
This problem was introduced sometime between 1.1.0-dev.3 (7/8/2020) and 1.1.0-dev.4 (11/17/22).
Steps to reproduce: