-
Notifications
You must be signed in to change notification settings - Fork 5
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
Bottom screen in state wrapper picks up thermometers #388
Comments
This seems odd to find in the state wrapper. It's pretty obscure, but I'm also surprised that it happens at all. |
I've examined the code and set some breakpoints, and I can see why this is happening. Code was added to The code in question looks like this:
|
This code causes or is related to another problem, one in which once a thermometer is stuck to a model element in the downstream sim, it can't get un-stuck. Here's a screen capture, observe how the thermometer in the lower frame stays on the block once it's there, even though the color indicator associated with it changes. |
The problem here, in a nutshell, is that the code that implements the "sticking" of the thermometers to the blocks and beakers has not been instrumented, so its state is not always being correctly set in the downstream sim, which leads to some incorrect "sticking" behavior. I've added code to turn off the element follower (i.e. the thing that makes the thermometer stick to - aka follow - a block or beaker) at the beginning of state setting process and then decide whether it needs to be turned back on at the end of state setting. This appears to work for all of the cases described above. A better solution would be to convert @KatieWoe - for now, please test this on master an let me know if it's looking good. That will give us all confidence that it will be fixed in the next RC. |
Ok, it does look ok on master now. Not sure what caused earlier. I must not have had a good copy of master. |
It may be that some of the work done in #391 improved things, since it was all about energy chunks that were on their way to something but not there yet. It's good to hear that it's working now. I'll mark it as fixed and will have it tested in the next RC. |
Looks fixed to me. 👍 |
For phetsims/qa#560. Occurs in previous RCs. (Sorry)
It is possible to drag an object over a thermometer on the first screen and have it behave properly in the top screen (thermometer left behind) and improperly on the bottom screen (thermometer picked up and carried with object). This can happen even if thermometers are in their box. Can be done with a mouse, does not require touch.
Seen on Mac 10.15 Chrome
Edit: Reset all does not solve this. Dragging the thermometer in the top screen moves them in front of the object that picked them up, but does not lent you move the thermometers.
The text was updated successfully, but these errors were encountered: