Closed jbphet closed 7 years ago
I tried adding allowTouchSnag: true
to the input listener added to the creator nodes in CoinTermCreatorNode.js
(currently on line 135). This didn't seem to make any difference in the behavior, and I suspect that it's because the events are being forwarded from the creator node to the created node.
@jonathanolson's - is there a way to have touch snag supported through event forwarding?
I was asked to do something similar in Circuit Construction Kit in https://github.com/phetsims/circuit-construction-kit-common/issues/371
I changed vanilla input listener to SimpleDragHandler and added allowTouchSnag:true and everything worked nicely on iPad2. I'd be happy to take a closer look at your situation if you would like to call.
I tried adding allowTouchSnag: true to the input listener added to the creator nodes in CoinTermCreatorNode.js (currently on line 135).
You will need to convert from vanilla object literal {}
to using SimpleDragHandler
.
@samreid and I were able to get some time from @jonathanolson, and he helped us to add the needed forwarding calls to the object literal instead of using SimpleDragHandler
. Initial testing show that it works well. I have committed this on both the 1.1 branch and master, so it should be available in the first release.
Test has been tested and released - closing.
@kathy-phet reported the following: