fix: eliminate scroll jitter in iOS text input when editing in upper … #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix: eliminate scroll jitter in iOS text input when editing in upper region
Summary
Resolved the iOS text input scroll jitter issue that occurs during upper region editing. The problem primarily affected components that render refined formatted text as children rather than via the value prop. When users edited text in the upper portion, the input field would maintain cursor position but inappropriately scroll to the bottom, creating a disruptive user experience.
The implementation addresses this by preserving the original content offset and temporarily disabling scrollability of the underlying _backedTextInputView instance during text manipulation. It restores the scrollEnabled property afterward, ensuring stable cursor positioning without compromising normal scrolling functionality.
Ticket Link
#42