Closed KatieWoe closed 3 years ago
This does indeed seem incorrect. The comments in the code (which I wrote) indicate that sound should only be played when the charges move, and I recall that being the intent, but it seems like sounds are being played on keyboard drag regardless of whether the charges have moved, and that shouldn't happen. I'll investigate and fix.
This was due to some confusion about how the models of point charges work. I've logged a separate bug about it because I think the design of these model elements is likely to cause other developers problems too if not addressed, see #557. I've addressed the immediate issue in ChargeDeflectionSoundGenerator
by using the correct attribute when comparing charge positions.
This is fixed.
Test device Dell Operating System Win 11 Browser Chrome Problem description For https://github.com/phetsims/qa/issues/721. When moving the balloon with keyboard nav, the moving electron noise will play continuously, even if electrons aren't moving. This happens when holding the down, up, or right arrow keys against the wall. Steps to reproduce
Visuals
https://user-images.githubusercontent.com/41024075/138183057-5f7b1320-7a60-4065-8ee7-c2e39a9cbe3d.MOV
https://user-images.githubusercontent.com/41024075/138183058-af59c7c7-2ea2-4e62-b9e9-f5841531521d.MOV
Troubleshooting information: