adjusting caret position for aligning with iPad cursor