-
Notifications
You must be signed in to change notification settings - Fork 1
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
Able to move balls with alt input when enabledProperty=false #337
Comments
Hmmm there should be no cueing indicators either. Oh I see you just opened an issue for that as well. |
I didn't realize there was this property: soccerBallsEnabledProperty The bug I saw was when I set the enabledProperty of each ball to false. |
I fixed the alt-input situation with this, but there still are some oddities I'm not quite sure how we want to handle. For example, if I disable input for all of the top soccer balls, but some of the bottom ones are still enabled I still get the mouse cue. The visibility of the mouse cue right now is only tied to wether the Thoughts? Also important to note, the studio tree has now changed a bit since I needed to access the Over to @amanda-phet to weigh in on the above question and review the final behavior. |
It's a little funky... For example, I set It seems to be working well on the Distribute and Faire Share screens! |
@amanda-phet, this feedback seems related to #334. I'm going to reassign you to this issue to get more specific feedback on the enabledProperty. |
I'm going to update examples.md to say two things:
|
…ividually disabled, see: phetsims/mean-share-and-balance#337
I committed a fix that handles the above scenarios more cleanly than it had been. I think the warnings that @amanda-phet wants to put in examples.md are still warranted, but hopefully we avoid as many of the ultra-buggy scenarios as possible. I think this is ready for cherry-pick for QA to verify and test. QA: It will be important to check that keyboard input/cues have not regressed with the soccer ball interactions. Especially in conjunction with PhET-iO. |
@amanda-phet @marlitas Since it isn't recommended to set the enabledProperty to false for the individual soccer balls, maybe those elements shouldn't be featured? |
@Nancy-Salpepi - being able to set I think the undesirable situation is disabling 100% of the balls one by one, and instead, the user should use the |
Ah gotcha! Thanks for explaining CC! |
Seems reasonable to note this behavior in examples.md and keep the logic as it is currently (behavior with the cueing hand on disabled balls). My only real concern is in the situation shown below. Since none of the balls are enabled (which the user shouldn't be doing, per examples.md), the hand appears, but there's no way to remove it since I can't tell the sim that I have recognized the cue and acted on it. Maybe this should added to examples as a consequence of disabling each ball rather than the group? What do you think, @amanda-phet? |
…mean-share-and-balance#337 (cherry picked from commit 02134c4)
…mean-share-and-balance#337 (cherry picked from commit 3690a61)
Signed-off-by: Michael Kauzmann <[email protected]> (cherry picked from commit 777536a)
Made a slight tweak to examples.md with @catherinecarter that can be used for both MSaB and CaV. I think we are done here! |
Addition to the examples.md looks good. I do see this one oddity....when disabling some of the kicked balls, if I disable the last ball kicked, in the Standard PhET-iO wrapper, when I grab a ball, the cueing hand/arrows will briefly move to the last ball kicked before disappearing. cueingArrowJumps.mp4 |
Found a more general version of #337 (comment) |
I believe #337 (comment) was fixed by the commit in #350 |
This looks fixed in rc.4. |
Test device
MacBook Air M1 chip
Operating System
14.5
Browser
Chrome
Problem description
For phetsims/qa#1121, in Studio on the Balance Point screen, setting the enabledProperty to false for the soccer balls still allows them to be moved with alt input.
Steps to reproduce
Visuals
soccerBallsInteractive.mp4
The text was updated successfully, but these errors were encountered: