A few fixes to text input single line scrolling.

- Fixed a problem on deleteSelection
- Fixed a problem with select