-
Notifications
You must be signed in to change notification settings - Fork 6
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
FaucetNode pointer areas aren't behaving correctly #614
Comments
This affects both touchArea and mouseArea, title of this issue changed accordingly. As noted in phetsims/ph-scale#180:
|
This problem is not present in 1.2.20 (8/5/19). It is present in 1.3.0 (8/7/19). There were no changes to FaucetNode.js during that window. @chrisklus's change in 6bdfe83 was made 8/19/19. @jonathanolson would you have some time to investigate this? |
The cause seems to be this Scenery Image node, which is layered on top of the shooter: This is triggered by an inputListener on the FaucetNode specifically. I'd recommend just changing the visual stacking order, @pixelzoom is that possible? |
@jonathanolson thanks for finding the problem! Changing the order is definitely doable, and I've done that in the above commit. The Node that you've highlighted above is |
@KatieWoe please verify this in master, with a few sims that use FaucetNode (ph-scale, BLL, EFAC, FPAF, Wave Interference). If it looks good, assign back to me so that I can cherry-pick for ph-scale and ph-scale-basics RCs. |
That might be a problem if (a) you want to prevent clicks on things behind a faucet (likely), or (b) you want a draggable faucet (less likely). Having it normal pickability still sounds correct, UNLESS its hit area isn't affected by that. |
Good point. I've removed |
Does look fixed on master. WI has a button, rather than a knob, so I'm not sure if the issue ever showed up there at all. Others look ok. |
Cherry-picks done for ph-scale and ph-scale-basics. Closing. |
Reported in phetsims/ph-scale#180, but occurs with FaucetNode in all sims (ph-scale, BLL, EFAC, FPAF, Wave Interference). This is blocking RC for ph-scale and ph-scale-basics.
The mouseArea for FaucetNode's knob (aka "shooter") is not working correctly. It looks like this with
?showPointerAreas
in ph-scale:But the lower 25% of the mouseArea is not responsive, and the cursor doesn't change. See the video capture in phetsims/ph-scale#180.
If I comment out this line in FaucetNode.js, then the default mouseArea works correctly:
This line of code was modified by @chrisklus in 6bdfe83. Here's the diff:
The text was updated successfully, but these errors were encountered: