Closed Nancy-Salpepi closed 1 year ago
I'll have a look. This is similar to #307 -- a tool that is in the wrong initial position when state is restored.
I was able to reproduce. After setting the state, I'll note that modifying the curve does not update the position of the tangent arrow. However, as soon as one modifies the x-position of the scrubber the tangent arrow updates itself to the correct position.
And we can observe the same bug with the State Wrapper.
Fixed in the above commit. As I suspected, this issue and #307 were the same underlying problem, shared by all tools. Great find @Nancy-Salpepi! Please verify in master.
Thanks @pixelzoom! This looks good in master now.
EDIT: this also fixed the same issue with the point for Area Under Curve
👍🏻 closing.
Test device MacBook Air M1 chip
Operating System 13.2.1
Browser Safari/FF/Chrome
Problem description For https://github.com/phetsims/qa/issues/921, on the Derivative Screen, after creating a curve on the left side of the graph and turning on Tangent, the Tangent line will be along the curve and not on the x-axis. When I launch the sim, the Tangent is in its default position along the x-axis.
Steps to reproduce
Visuals
https://user-images.githubusercontent.com/87318828/227216078-81751452-258d-42ee-8856-d84809c81727.mp4