Closed samreid closed 6 months ago
Expand the clickable area of the stopwatch launch button, so that it is up to the edges of the bottom and sides of the tool.
I disagree with this, because a user may expect to drag the stopwatch node via that area. Instead, I'll dilate it a bit vertically and horizontally.
I addressed 2 parts. The final part is the sample size radio buttons.
Unfortunately, this patch seems to have no effect:
@pixelzoom any ideas how to accomplish this?
I've confirmed that RectangularRadioButtonGroup's pointer-area options are broken (touchAreaXDilation
, touchAreaYDilation
, mouseAreaXDilation
and mouseAreaYDilation
). I tried to fix them, but was unsuccessful. There is so much code in RectangularRadioButtonGroup that is no longer needed (e.g adding invisible rectangles) and should be replaced with scenery layout managers. Recommended to put our efforts there, rather than trying to work around this.
In the meantime... The spacing between the sample size buttons is 6, so you can only dilateX by 3. Why not just make the buttons 3 pixels larger? You have the space to do so. That would side-step this problem.
Here's how far I got with fixing pointer areas in RectangularRadioButtonGroup. The options are at least applied now. But there are still subtle problems that are visible in other sims.
This looks related to https://github.com/phetsims/sun/issues/856
In the meantime... The spacing between the sample size buttons is 6, so you can only dilateX by 3. Why not just make the buttons 3 pixels larger? You have the space to do so. That would side-step this problem.
Good idea! I adjusted that in the commit and it looks very nice. I added https://github.com/phetsims/sun/issues/856 to the next developer meeting agenda, to see if we want to schedule a subteam to work on it. Closing.
@samreid and I reviewed the pointer areas and found the following remaining work to be done:
We recognize that the interval tool has 2 overlapping pointer areas, but noted that both of these components have the same behavior. Clicking either the interval number or data % number both drag the tool.