set onScroll when scrolling to text input, closes #1213