Found a bug, if you start an input form with multiple spaces it doesn't work as expected, it seems like only visible characters add to the calculated offset.
wait until the project is a little more stable (more testing). I will do some refactoring and look into looking at this
It's possible to fetch the cursor position in the input.