Got dragging of a graphical element working with offset.
Now constraining the draggable element to the area of the draggable container.