Fix for mis-positoining of cursor on mouse/touch in multi-line text input

Rounding error fixed