Added limit to dragging.