You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KeyboardDragListener also deviates from DragListener in how it defines ES5 getters. KeyboardDragListener violates PhET convention and does not have non-ES5 set and get methods.
I updated the API for transform in KeyboardDragListener above. I didn't see any other getters or setters needing work. @pixelzoom is there anything else here?
Related to #1307 ...
KeyboardDragListener also deviates from DragListener in how it defines ES5 getters. KeyboardDragListener violates PhET convention and does not have non-ES5 set and get methods.
For example:
This is one more thing to deal with when adding a KeyboardDragListener.
For example, in Geometric Optics, I had this in GORulerNode.js:
I want to do the same for a KeyboardDragListener I'm adding to GORulerNode, so I naturally expect to be able to add it like this:
That fails, because there is no KeyboardDragListener
setTransform
. So I have to either live with the difference:... or change working code so that they are the same:
The text was updated successfully, but these errors were encountered: