I have a Draggable, it is bounded to a container like this:
Draggable.create(t, {type:"x,y", bounds:container, throwProps:true, liveSnap: false, snap: {
x: function(endValue) {
return Math.round(endValue / 38) * 38;
},
y: function(endValue) {
return Math.round(endValue / 50) * 50;
}
}});
But I want to shrink the bounds within the container. How can I give an offset to the bounded container? Another approach is to define a dummy container that fits exactly within required bounds, but that's a little more work.