I want to drag a Famous surface, and have it return to its original position when I let go of it. I\'ve taken the \"Drag\" example and modified it, but while the mouse
instead of binding mouseup event on surface, better way might be using the end event on draggable
surface.on('mouseup', function() {
draggable.setPosition([0,0,0], trans);
});
->
draggable.on('end', function(e) {
draggable.setPosition([0,0,0], trans);
});
in this way, the touch event will be taken care of as well