phetsims / pendulum-lab

"Pendulum Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
4 stars 10 forks source link

Period Timer behavior seems weird #77

Closed aaronsamuel137 closed 9 years ago

aaronsamuel137 commented 9 years ago

I'm not totally sure if this is an issue or not, since I don't know what the intended behavior of the period timer should be. But, it seems odd to me that you can reset the timer and the button still remains a reset button instead of going back to a play button. Also it is possible to get the timer into a strange state where the button looks like reset, but pressing it starts the timer - as well as the reverse situation where pressing the play button resets it.

It's hard to give exact steps to reproduce, but it happens fairly easily if you just take out the timer and press the button a bunch.

If this is the intended behavior, feel free to let me know. It just seems odd to me and so I want to check if there is a bug here.

arouinfar commented 9 years ago

Good catch, @aaronsamuel137. The period timer is not functioning properly.

After playing around with the period timer, I've found a few issues. Some of them are similar to issues that have previously been reported and resolved.

Desired behavior: Once the start button is pressed, the period will start recording once the pendulum crosses the midline at 0 degrees. The path will be traced while the period is recorded, and then will gradually fade away. While the period is recording, the the start button will turn into a reset button. Once the period has recorded, the reset button will turn back into the start button. If the reset button is pressed while the period is recording, the display will immediately reset to 0s, the trace should disappear (not fade), and the reset button should switch back to the start button.

andrey-zelenkov commented 9 years ago

Fixed period timer behavior. Reassign to @arouinfar for verification.

arouinfar commented 9 years ago

The previously reported issues appear to be have been fixed, but there are still a few outstanding issues using OS X 10.9.5 and Firefox 38.0.1/Safari 7.1.6.

Just before clicking Reset All (left) and after clicking Reset All (right): imageimage

After pressing the record button (left) and then displacing the pendulum (right): imageimage

Reassigning to @andrey-zelenkov.

andrey-zelenkov commented 9 years ago

Fixed period timer behavior for ResetAll button handlers. Reassign to @arouinfar for verification.

arouinfar commented 9 years ago

The first issue has been fixed, but the second one is still present. Reassigning to @andrey-zelenkov.

andrey-zelenkov commented 9 years ago

Fixed path tracing when period timer is not recording the period. Reassign to @arouinfar for verification.

arouinfar commented 9 years ago

Looks great, thanks! Closing.