You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discovered in phetsims/faradays-electromagnetic-lab#103, we found that when keyboard dragging an item such as the Projectile Data Lab stopwatch or the Faradays Electromagnetic Lab field meter node, there is a sound when you press an arrow key, indicating the pick up. When you release the key there is a drop sound. That is all working well.
But if you press multiple keys, for instance, to move something at a diagonal, there is an unexpected sound effect. For instance:
Tab to select the Field Meter Node in screen 1 of FEL.
Press the right arrow to start dragging to the right
While dragging to the right, tap the down arrow repeatedly.
The effect is that you will hear multiple pickup sounds even though the tool is already picked up.
Likewise, if you hold down the right arrow and press the left arrow, the object will stop moving and you will hear another "pick up" sound.
I reached out to @jessegreenberg and he said this was unexpected and should be addressed. He indicated the problem may lie in this code:
This means the "drag started" sequence is getting called more than once, which may be causing other side effects. @jessegreenberg can you please review and advise?
The text was updated successfully, but these errors were encountered:
Discovered in phetsims/faradays-electromagnetic-lab#103, we found that when keyboard dragging an item such as the Projectile Data Lab stopwatch or the Faradays Electromagnetic Lab field meter node, there is a sound when you press an arrow key, indicating the pick up. When you release the key there is a drop sound. That is all working well.
But if you press multiple keys, for instance, to move something at a diagonal, there is an unexpected sound effect. For instance:
The effect is that you will hear multiple pickup sounds even though the tool is already picked up.
Likewise, if you hold down the right arrow and press the left arrow, the object will stop moving and you will hear another "pick up" sound.
I reached out to @jessegreenberg and he said this was unexpected and should be addressed. He indicated the problem may lie in this code:
scenery/js/listeners/KeyboardDragListener.ts
Lines 322 to 342 in a4abda7
This means the "drag started" sequence is getting called more than once, which may be causing other side effects. @jessegreenberg can you please review and advise?
The text was updated successfully, but these errors were encountered: