answerstu

C4: Add panning to an object other than "self"

I watched the C4 tutorial on adding a pan gesture to an object and animating it to return to its original position when the panning is finished. I'm trying to add this to three individual objects. I have it working with one object so far to move it and reset it to a CGPoint, but for it to work, I have to add the pan gesture to "self", not the object. For reference, I'm pretty much using the code from here:http://www.c4ios.com/tutorials/interactionPanning If I add the gesture to the object itself, sure, it pans around, but then it just leaves it...Read more

How to enable/implement panning in cytoscape.js?

The cytoscape.js source code mentions panning several times. By panning I mean the ability to grab the background and move the whole graph in the mouse movement direction while grabbing, as you could do in d3.js. So far I've included the relevant libraries and css:<link rel="stylesheet" type="text/css" href="cytoscape.js/build/plugins/jquery.cytoscape-panzoom.css"><script src="demo/jquery-1.7.2.js"></script><script src="demo/jquery-ui/js/jquery-ui-1.8.21.custom.min.js"></script><script src="cytoscape.js/build/c...Read more