-
Notifications
You must be signed in to change notification settings - Fork 4
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
Is it time to generalize "KeypadLayer" #60
Comments
From phetsims/unit-rates#153:
So no, I don't think that KeypadLayer should be generalized. The time would be better spent finishing Keypad, so that we don't have to copy code and continue to put workarounds in new code. The redesign of Keypad started in 2016 and stalled out. The main GitHub issue is phetsims/scenery-phet#283. And there are quite a few related issues that still need to be addressed, see phetsims/scenery-phet#271, phetsims/scenery-phet#272, phetsims/scenery-phet#279, phetsims/scenery-phet#333, phetsims/scenery-phet#541. So my recommendation is to ask @ariel-phet whether he would like you to make another copy of the KeypadLayer workaround, or whether the Keypad work should be prioritized so that the workaround is unnecessary. |
See also phetsims/projectile-motion#127 for the status of keypad workarounds (including KeypadLayer) in Projectile Motion. This has also been seen no progress since August 2017 (coming up on 3 years!) |
@pixelzoom I'm not sure I'm quite understanding. Quickly looking at all the issues you mentioned in #60 (comment), it seems like they were all related to
But thanks for pointing me to phetsims/projectile-motion#127 where you said to use the new |
Now I'm confused. None of the stuff you mentioned is part of KeypadLayer and (based on the title of this issue) I thought that's what we were discussing. But I see that you also said:
Yes, something that provides these features should be in common code, part of the "keypad" feature. My understanding is that's part of the "unfinished work" that I pointed to in #60 (comment). I have no idea how the developers who are working on that (@jbphet and @Denz1994) intend to address this. So the way forward is to continue/finish the work that was started, not start a new/separate effort to generalize the unit-rates versions of |
In I was able to remove the canceling functionality when I switched to For now, I'm happy with my version of |
I think this issue can be closed. The new Dialog works really well and the usage is elegant in Collision Lab. Although there are still issues with Keypad, there are already plenty of open issues for that. So I'm closing. |
In both
ProjectileMotion
andUnitRates
there is a Keypad layer which allows the user to modify some numeric Property.CollisionLab
is now the third sim to need this functionality.ProjectileMotion
andUnitRates
have aKeypadLayer
class whichIn my opinion, this is a lot of code functionality to essentially copy and paste into collision lab. Should there be a
KeypadLayer
class in common code?@jonathanolson @pixelzoom thoughts?
Edit:
The KeypadLayer looks like
Edit 2: forgot to mention this issue is related to #27.
The text was updated successfully, but these errors were encountered: