-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Number display incorrect when using array to set balls #335
Comments
Addressed above. I would like to talk with over with @jbphet though. |
This change is a little tricky for me to review. I can see what you're after (I think) in this.targetNumberOfBallsProperty.value = Math.min( dataPoints.length, this.maxKicksProperty.value );
this.numberOfQueuedKicksProperty.value = 0; Reading through other parts of the code, I can see that changing Since this is a phet-io-specific feature, I think it's probably okay, but I'd suggest elaborating the existing comment a bit to describe a bit more fully what's going on. |
Committed more documentation. I believe this is ready for cherry-pick. @jbphet let's connect synchronously to make sure we are indeed good to go on this. I agree that it feels fragile... it was not my favorite overall. I would feel better if the method could be |
Met with @jbphet and we both agreed it was a necessary evil. @pixelzoom helped us by pointing out that moving the override code to the BalancePointModel IOType would increase the safety of the code. We feel much better now. |
…alance#335 (cherry picked from commit 37ca355)
Unable to verify this issue is fixed due to #345 |
Looks good in rc.3 |
Test device
MacBook Air M1 chip
Operating System
14.5
Browser
Safari 17.5
Problem description
For phetsims/qa#1121, on the Balance Point screen only, the number display doesn't change to show the number of balls on the field when using the array method to add balls.
Steps to reproduce
await phetioClient.invokeAsync( 'meanShareAndBalance.balancePointScreen.model', 'setDataPoints', [ [4, 9, 10, 1, 10, 6,] ] );
Visuals
The text was updated successfully, but these errors were encountered: