-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mirror-inputs wrapper quickly is out of sync after keyboard nav & Reset All #194
Comments
Possibly a macOS specific issue; I'm unable to get the same to occur in win10. |
I'm not seeing any |
Likewise there are no lodash random calls. |
I tested for a minute and could not create any discrepancies in the mirror wrapper. |
@samreid @jessegreenberg I know how to make this happen consistently (although, I don't know why). It is very much reliant on keyboard nav. Here is a controlled setup to demonstrate:
I do not believe you need to do this procedure slowly to see the issue, but doing it slowly is more demonstrable. Subsequent Reset Alls will not re-sync the sims, you must refresh the browser. |
@EthanWJohnson was successful in reproducing on Win 10. |
This issue seems related to keyboard navigation or the main model, assigning myself to take a look. |
@phet-steele did the example in #194 (comment) also use keyboard navigation first? |
More than likely. At the time of recording, it was certainly not apparent that keyboard nav was a necessary part of the procedure. #194 (comment) is the most informed report. |
Ok, great, thanks! |
There are two parts of this issue. First, the number of electrons in the body can become out of sync as shown in #194 (comment). Second, positions of electrons in the body can become out of sync, as shown in #194 (comment). The above commit fixes the first part of the issue. The second part of the issue is because The best fix for this is probably to get phet-io to capture all keyboard events. |
This issue illustrates an problem in the overlap between phet-io and accessibility, not sure if it should remain at high priority. @ariel-phet should this be a high priority issue? |
@jessegreenberg I do not think this issue should remain at high priority. iO and a11y will need to "play nice" in the long run, so it is worth some investigation, but since iO strategy is still in flux, I don't think we need to have a perfect fix/overlap just yet. Good to understand the "why" but not necessarily make things perfect yet. |
It is more obvious when interrupting towards the end of the discharge (when there are about to be no electrons left):
The sims will end up with differing amounts of electrons, leading to different discharge occurrences (about halfway in the video the bottom one discharges while the top does not):
Seen on macOS 10.12.3 Chrome. For phetsims/tasks/issues/780.
The text was updated successfully, but these errors were encountered: