Prevent Drag outside element


#1

I created element1 inside which you can drag another element2, but i want to disable dragging element2 outside of element1.