Closed KatieWoe closed 1 year ago
Good find @KatieWoe. This behavior is really buggy, and we should definitely fix it for this release.
@KatieWoe - I've made a change, please check the behavior on master and see if it is back to how it used to behave.
@marlitas - I think this problem was introduced in d13cce753fc6b674751ebcf28d8ca8b3087d046d. I want to run the change I just made by you because I'm not quite clear on what you were going for in that commit. Can you please look at the two commits and verify that what I've done makes sense and I'm not missing something? Thanks.
When these two things have been checked, please assign the issue back to me.
Master is much better. Seems to work like published for the most part. The bounds where the mass was considered on/off seemed a bit different on the left and right sides of the spring. But I could be wrong there.
@jbphet I honestly don't really remember why I had onDrag
being called in both the start and end options... Your change makes sense, and if the sim is now working as expected, that's good enough for me!
Thanks for checking in.
Closing based on @KatieWoe and @marlitas comments above and my own testing.
Test device Samsung Operating System Win 11 Browser Chrome Problem description For https://github.com/phetsims/qa/issues/936. The behavior of the hanging spring when putting on a mass or removing it is different from published. When removing the mass from the spring the spring stays in its last position, whether extended or contracted, until the mass is dropped. In published it would return to default rest as soon as it was removed. Much more buggy and problematic though is the behavior when putting the mass on the spring. The spring stays at rest until the mass is added. In published the mass and spring would connect when in line and you could start the mass at any level of extension or compression. You can no longer do this.
Visuals
https://user-images.githubusercontent.com/41024075/236538350-6aa01290-aae3-4b07-a37d-7917fac2f044.mp4
https://user-images.githubusercontent.com/41024075/236538439-6d96d497-21f9-47eb-a64d-5a95cc734634.mp4
Troubleshooting information: