Open matthew-blackman opened 3 months ago
Confirmed on published. Assigning @samreid
Through investigation with this patch, I have identified the troublesome area:
The problem is that DisplayClickToDismissListener
does not support more than one instance. For instance, testing on main for CCK-AC, neither screen 2 nor 3 can deselect circuit elements. However, if running any single screen with ?screens=2 or ?screens=3, it is fine.
DisplayClickToDismissListener
is only used by Circuit Construction Kit, and attaches to pointer itself on press. Hence when there are 3 DisplayClickToDismissListeners, only the 1st one (for screen 1) attaches to the pointer. The others fail to attach because of this line:
This code has been out for review in https://github.com/phetsims/joist/issues/770 since Feb 2022. What is the best way to address this problem?
Thanks for identifying the problem. A solution has been committed in https://github.com/phetsims/joist/issues/770, would you like to review or verify?
It sounds like this is in the published version and we may want to redeploy CCK sims, let me know if I should do that or help with that.
The problem is in the DC sim but not in the AC sim. @kathy-phet @matthew-blackman should we republish? Or just when we publish with changes for data fluency?
I confirmed @jessegreenberg fixes are great, thanks!
I am unable to deselect a highlighted circuit component on the Lab screen. This does not occur in CCK-AC or CCK-Virtual Lab. To reproduce the issue:
In mine and @samreid's initial testing, the component could not be deselected without selecting another component. This is a high-priority bug to address, since users are likely to run into this frequently on the Lab screen of the published sim.