-
Notifications
You must be signed in to change notification settings - Fork 12
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
Delete constrainValue from AccessibleValueHandler #837
Comments
A large portion of this issue is going to be teasing out potential regressions in current code. Right now, in my-solar-system, because of the use of keyboardStep (25) + constrainValue (map to nearest 25), you can be at 24, press keyup, and then end at 50. If a designer considers that a "feature" than it will be a regression to just have keyboardStep (which will result in a final value of 49). It isn't clear that is a regression to me, so we will likely want to be careful about how we review sims effected by this change. |
@arouinfar @terracoda - tagging you because am curious what you think. My instinct would be that design wise it would be more important for keyboard that hitting next "arrow" would just to a clean next value. But I could see having different constrain values for keyboard and mouse. Clean numbers seems pedagogically useful |
Here's what I said over in #703
|
In OL and RIAW, we rounded to clean numbers when using keyboard. I agree, clean numbers are pedagogically useful. I think we wrote about this in this 2018 HCII paper https://dl.acm.org/doi/abs/10.1007/978-3-319-92049-8_28 Maybe this link is better: https://link-springer-com.colorado.idm.oclc.org/chapter/10.1007/978-3-319-92049-8_28 |
I don't think I fully follow what's going on here @zepumph, but if the result is that
Agree!
I would argue that 99% of the time we want
Agree! We should prioritize clean numbers in all input forms. |
This feels like backburner alt-input work that I won't have time for now and may need more discussion before proceeding, but is good to recognize as a potential step forward. We have already mentioned this in phetsims/scenery#1298, and I think that will be where this work get's scheduled next, unassigning. |
We confirmed the behavior in My Solar System is correctly quantizing as desired. So I don't have other planned work on this issue at the moment. Self-unassigning. |
This came up for us again in greenhouse-effect. We tried |
From #698 and #350
A subset of phetsims/scenery#1298
@samreid and @jessegreenberg and I have just had a large conversation about how constrainValue is being used in My Solar System over in phetsims/my-solar-system#105, and have come to the conclusion that as it interfaces with the step values, it is really really confusing. We recommend deleting it, and keeping
constrainValue
specific to mouse/touch inSlider
, and the following as the API for AccessibleValueHandler:By having different APIs, we provide the least confusion and most ability to support the unique design cases that we have continually wanted for these two different interactions.
Tagging @pixelzoom, especially since I hope he will likely feel similarly, especially as it pertains to his most recent comment on the topic: #698 (comment)
The text was updated successfully, but these errors were encountered: