-
Notifications
You must be signed in to change notification settings - Fork 3
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
Drag Listeners aren't interrupted #156
Comments
This is an older sim, and was missing the call to @Nancy-Salpepi please review in master. If it looks OK, assign back to me for cherry picking. |
@ pixelzoom
|
The grab/release sounds are handled by RichDragListener, and the sim does not have any control over muting its sounds. So I suspect that other sims using RichDragListener (area-model suite, FEL, KL, MSAB, wave-interfernce) also have this problem. RichDragListener should be checking before playing the release sound, to verify that the drag did not end due to an interruption. I've asked @AgustinVallejo and @zepumph to address this for RichDragListener/RichKeyboardDragListener in phetsims/scenery-phet#849.
And visa versa, I suspect. In this case, it's complicated to be that selective about what to interrupt -- the manipulators and NumberPickers are in entirely different areas of the code. I don't think this warrants the additional complexity, but I'll investigate. |
Much too complicated, and for negligible benefit. The worst that will happen if a manipulator and NumberPicker are used at the same time is that they will appear to "fight" since they are both changing the same Property. So this request will be "won't fix". |
In phetsims/scenery-phet#849 (comment), @zepumph indicated that this is fixed in main. I cannot confirm because I don't have a multitouch device with me. @Nancy-Salpepi can you please confirm? Then assign back to me for next steps. |
This is fixed in main. One more thing to think about: |
Good point. Unfortunately, each sim needs to specify what happens when the 'Start Over' button is pressed. So while I'd bet that other sims have this issue, there's no way to address it for all sims. Each sim needs to specify @Nancy-Salpepi please verify in main, assign back to me to cherry pick. |
I went ahead and did all of the cherry picks, including the scenery and scenery-phet commits identified in phetsims/scenery-phet#849 (comment). |
Looks good in main! |
Thanks @Nancy-Salpepi! Ready for review in GL 1.4.0-rc2 and GSI 1.2.0-rc2. Please close this issue if it tests OK. Summary of what to test:
|
All looks and sounds good in GL 1.4.0-rc.2 and GSI 1.2.0-rc.2. |
Test device
iPad 9th generation
Operating System
iPadOS 17.4.1
Browser
Safari
Problem description
For phetsims/qa#1066 (and phetsims/qa#1067) on the first 3 screens when I am holding a sphere with one finger and press Reset All or use the number picker with another, the drag listener isn't interrupted. I see the same thing with the Point Tool and Reset All button.
Steps to reproduce
Here is an example:
Visuals
dragListeners.mov
The text was updated successfully, but these errors were encountered: