-
Notifications
You must be signed in to change notification settings - Fork 4
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
Reference Line's x value should snap to 1 decimal place #305
Comments
Ready for review by @amanda-phet. First, confirm that this change is desired. Then confirm that it is working correctly: Open the sim in Studio, select |
@amanda-phet stated in a Slack conversation:
|
Unassigning @amanda-phet, I'll test that it is working properly in Studio. |
I can confirm that the xProperty in Studio snaps to 1 decimal place when the Reference Line scrubber is released. |
I thought it would be an easy issue to review and close 😞. Reassigning to @amanda-phet for input. |
In today's standup meeting, @amanda-phet and @catherinecarter said that they'd like to revert the snapping, and that it's OK that the displayed value and Property value may be slightly different. I've done that in the above commit. |
So the next question is... When the model value and the displayed value may be different, we typically both the model and displayed value in the PhET-iO API. We currently do not provide a way to get the displayed value. @amanda-phet please choose one of these 3 options: (1) Do nothing. (2) Instrument (3) Add new Property |
Option (3) sounds best to me. Thanks for thinking about all of these implications! |
Option (3) is done, closing. Feel free to have a look in master. |
For phetsims/qa#921 ...
While working on other issues, I noticed that with "Value" preference on, the Reference Line displays only 1 decimal place for the x value. For example:
But inspecting
tools.referenceLine.xProperty
in Studio, the value is actually5.496479633520075
.So much like sliders, I believe that we should be snapping to 1 decimal place at the end of a drag cycle. I'm going to go ahead and do this, and confirm later during review.
Other scrubbers (tangent, area) do not need to be snapped, because they do not display the x coordinate.
The text was updated successfully, but these errors were encountered: