Skip to content

Conversation

@yucheng1219
Copy link

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

@enahum
Copy link
Contributor

enahum commented Mar 9, 2025

can you please provide a video of the issue and how this PR solved it ?

@enahum
Copy link
Contributor

enahum commented Mar 9, 2025

have you checked that this affects iOS only and not Android as well ?

@mattermost-build
Copy link

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants