On Thu, 23 Feb 2023 17:40:05 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
> It might behave differently when the caret is at the rightmost position next > to the control edge, in which case the behavior is correct. Perhaps there > ought to be some conditional logic implemented, but the way it behaves now > when the caret is close to the left edge feels unnatural. > Yes this behavior looks unnatural. I see this issue in the mainline as well. Basically this behavior is observed because of the logic that, when we start typing in text field with RIGHT alignment, left side of the text is scrolled. So from whichever position we start inserting new characters, left side of the text gets scrolled. Because of the same behavior the newly inserted text scrolls to the left when we start typing from the first visible character. I will analyze a bit more on this behavior. ------------- PR: https://git.openjdk.org/jfx/pull/980