Hey guys. I'm a relative noob here, and I'm trying to figure out how to work with draggable layers. I have a draggable main layer with a bunch of sub-layers arranged on it, and I would like to be able to drag/scroll through the sublayers by dragging the main layer.
When I do not set constraints, then I can drag the main layer anywhere I want and 'scan' through my sublayers. The problem is when I reach the end of the sublayers, the main layer just gets dragged into no-man's-land. I want to limit the area where I can drag the main layer but when I put constraints on there, such as x, y, width, height, it just causes the main layer to bounce back to the x,y position of the constraints.
I know that's what its supposed to do but is there anyway to get it to bounce back when it reaches past a certain point, but behave as if there are no constraints until then?
Sorry for the wordiness... here's my test code so far...