removed caret transition
changed caret position if click is out of screen