Skip to content
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

Thermometer resets tilted on states screen. #223

Closed
JRomero0613 opened this issue Aug 15, 2018 · 10 comments
Closed

Thermometer resets tilted on states screen. #223

JRomero0613 opened this issue Aug 15, 2018 · 10 comments

Comments

@JRomero0613
Copy link

JRomero0613 commented Aug 15, 2018

Device:
Mac OS X El Capitan v. 10.11.6
Browser:
Chrome v. 68.0.3440.106
Problem description:
Noticed while testing phetsims/qa#164 on the states screen heat an atom or molecule to the point where the lid flies off (I used Argon) and choose a different atom or molecule to reset the lid. The thermometer should now be reset to its original position but it will be cocked to the side. The thermometer and sim still function as expected, this is more of a design note. I have attached a screenshot of how the thermometer looks in this tilted position.
screen shot 2018-08-15 at 8 59 12 am

@JRomero0613 JRomero0613 changed the title Thermometer Thermometer resets tilted on states screen. Aug 15, 2018
@KatieWoe
Copy link
Contributor

Just tested this on the published sim and it does occur there as well.

jbphet added a commit that referenced this issue Aug 28, 2018
@jbphet
Copy link
Contributor

jbphet commented Aug 28, 2018

Interesting test case, I've never done that. I've added code to reset the rotational angle of the thermometer when the lid is returned after the container explodes.

@jbphet jbphet removed their assignment Aug 28, 2018
@JRomero0613
Copy link
Author

I've just tested this issue in master on macOS Sierra v. 10.12.6 on Chrome v. 68.0.3440.106, Firefox v. 61.0.2, and Safari v. 10.1.2.12603.3.8 and it has been fixed. I move to close this issue, with a check to make sure it has been fixed in the next round of testing.

@phet-steele
Copy link

I've caused this in 1.1.0-rc.1. The rotation is correct, but the position is not.

image

I'm not sure how close to the original steps I was (since I think they may have been missing some details), nor am I sure that what I did is important, but here they are:

  1. Heat Argon.
  2. JUST as the lid blows, BEFORE the thermometer leaves the top of the screen, click Neon.

Seen on Win 10 Chrome. For phetsims/qa/issues/185.

Troubleshooting Information

image

@KatieWoe
Copy link
Contributor

Using @JRomero0613 method it does seem fixed (this is the same as @phet-steele method but clicking Neon later, after the lid leaves.)
@phet-steele that's a good catch. One addition to step 2. It looks like you need to click Neon before the lid leaves the screen, not necessarily before the thermometer, leaving a bit more wiggle room. Most easily done if you have a multitouch screen.
new version

@KatieWoe
Copy link
Contributor

Hitting the orange reset button does not move the thermometer back.

@jbphet
Copy link
Contributor

jbphet commented Oct 5, 2018

I certainly appreciate how thoroughly you folks test these things! It turns out that if the thermometer node is moved back into place when rotated (due to its movement after an explosion), and then de-rotated to a rotation angle of 0, its position is off because the rotation operation uses the origin of the node rather than its center. I fixed this be changing the order of operations to do the de-rotation first, then set the position.

@jbphet
Copy link
Contributor

jbphet commented Oct 8, 2018

Assigning to QA to updated based on the results of the 1.1.0-rc.2 testing.

@jbphet jbphet assigned KatieWoe and unassigned jbphet Oct 8, 2018
jbphet added a commit that referenced this issue Oct 8, 2018
@KatieWoe
Copy link
Contributor

Confirm 1.1.0-rc.2

@jbphet
Copy link
Contributor

jbphet commented Oct 29, 2018

Deployed in v1.1.0, closing.

@jbphet jbphet closed this as completed Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants