Fixed text cursor when dragging.