Open samreid opened 7 years ago
Mentioned approach is in https://github.com/phetsims/scenery/issues/650.
Would add phet.joist.sim.display.addInputListener( ... )
with a listener that dismisses the buttons when the user clicks outside of the Expression or buttons themselves.
Assigning to @amanda-phet to decide if the behavior should be changed in the recommended way. I have no objection.
I can't remember exactly why we chose the timer... I just know that we wanted the buttons to go away. Clicking away seems reasonable.
To clarify, the behavior here won't mimic CCK in other ways- for example, unlike CCK, the rearrange and scissor buttons should appear while dragging and persist after stopping a drag (until they click away).
While working on https://github.com/phetsims/circuit-construction-kit-dc/issues/87 @jonathanolson and I noticed that the cut button is on a timer. That seems like an accessibility problem, since some users will not be able to reach the button within the allotted time. In other sims such as CCK we have used a pattern where clicking away, or clicking anything else dismisses the scissor buttons.
@jonathanolson and I are working on an approach in Scenery to make this easier.