-
Notifications
You must be signed in to change notification settings - Fork 8
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
Disabling Dropper dragListener in version 1.5 results in disabled Dropper Button in version 1.6 #263
Comments
What, another problem with dropper interactions? How suprising :) There's no pedagogical reason for making the dropper movable. We did it to make interacting with the dropper move "fun". But it has caused nothing but problems (and continuing cost) in both the Java and HTML5 versions. An incomplete list of problems includes: How to keep the drag handler from swallowing button events, how to hold down the button while dragging the dropper, how to design alt input (we punted), ... and now, how to workaround PhET-iO problems. So before I incur yet-another cost related to this... Can we please revisit whether the dropper needs to be movable? @arouinfar thoughts? |
Also note that in #252 (alt input), we decided that moving the dropper via alt input is not necessary. In PHDropperNode.ts:
If it's not necessary for keyboard, then it's presumably not necessary for mouse & touch either. |
…operty), in anticipation of phetsims/ph-scale#263
Reproduced in master. Investigating more, and re-reading @Nancy-Salpepi's report:
This smells like a bad migration rule, and here it is:
The original Property disabled only the button's dragListener. This rule maps that to disabling all input for the entire dropper, including the push button. This definitely needs to be addressed, regardless of whether the dropper remains movable. @samreid @zepumph FYI. Also note that if do we remove dragging from the dropper, that will change the PhET-iO API, and require one or more migration rules. So maybe we want to leave it as is. |
@arouinfar nevermind. We're keeping the dropper movable. I can't bear to deal with making it unmovable at this point in the release process. If you'd like to reconsider that in a future release, please create an issue. In the above commits, I instrumented This example illustrates several pitfalls of migration rules: |
@Nancy-Salpepi ready for review in master. If it looks OK, please close. To test:
There are 2 occurrences of each of the above PhET-iO elements in ph-scale, 1 occurence in ph-scale-basics. |
Looks good in all occurrences in master. Closing. |
Test device
MacBook Air (m1 chip)
Operating System
13.0.1
Browser
safari 16.1
Problem description
For phetsims/qa#866 and phetsims/qa#867, in Studio version 1.5 if I set
view.dropperNode.dragListener.enabledProperty
to false --the dropper can't be moved from side to side, but the button still works and liquid can be dispensed. Loading this version into Studio 1.6, results in the dropper button being disabled as well. I see there are changes to that portion of the tree, but wanted to make sure that was the intended outcome OR if in this case, it should have reverted to the default setting?Steps to reproduce
In pH Scale:
view.dropperNode.dragListener.enabledProperty
to falseThe text was updated successfully, but these errors were encountered: