Fixes the problem where the cursor will jump to the last line
of the editor when touched (clicked) on a mobile device.