-
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
SimpleDragHandler should use Pointer.attachedProperty instead of Pointer.dragging #910
Comments
Here's a patch that addressed the symptom in Wave Interference:
You can apply it using WebStorm => VCS => Apply Patch. It seems likely that this bug may be affecting other sims that are using mixed types of drag listeners, so I'll mark this as blocking publication. @jonathanolson can you please take a look? |
Note I also patched a usage in CoinTermCreatorNode. |
Does setting |
That works perfectly, thanks! On hold until @KatieWoe tests phetsims/wave-interference#243 |
Looks like things over there have been cleaned up, tested, and closed. Marking off hold. |
Approved in testing, closing. |
It looks like Pointer.js was changed to use
attachedProperty
in Feb 2017. SimpleDragHandler has been attachingPointer.dragging
separately. This means that a Pointer dragged by SimpleDragHandler doesn't know that it's attached and hence you can pick up something else with it via swipe to snag. Example and video are here:phetsims/wave-interference#243
It seems this can be solved by changing SimpleDragHandler to use
Pointer.attachedProperty
. I'll propose a patch shortly for @jonathanolson to review.The text was updated successfully, but these errors were encountered: