Move improvements to the drag directive, to fix issues related to dragging the mouse outside the browser area.