Turn on mouse tracking to store initial cursor position before mouseDrag.