Scroll box scrolling to the text typing

In scroll box i have a editable text multi line. I would like to scroll box scroll automaticly while we typing on the end of the text. I can pin to the OnTextChanged a ScrollToEnd but if i do this, when the user would like to add text in the middle of the text, scroll box will scroll to the end and user wont see what he is typing.