Skip to content

fix(android): prevent scroll flicker in auto-grow mode by blocking scrollTo#235

Merged
hryhoriiK97 merged 1 commit intomainfrom
fix/android-autogrow-scroll-flicker
Apr 10, 2026
Merged

fix(android): prevent scroll flicker in auto-grow mode by blocking scrollTo#235
hryhoriiK97 merged 1 commit intomainfrom
fix/android-autogrow-scroll-flicker

Conversation

@hryhoriiK97
Copy link
Copy Markdown
Collaborator

@hryhoriiK97 hryhoriiK97 commented Apr 10, 2026

What/Why?

Fixes a visible flicker on Android when pressing Enter on the last line of a growing EnrichedMarkdownInput with scrollEnabled={false}.

The flicker happens because TextView internally scrolls the content before Fabric has resized the view to its new height. Overriding scrollTo() to no-op in auto-grow mode prevents this — Fabric handles the height, so internal scrolling is never needed.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes

@hryhoriiK97 hryhoriiK97 merged commit 7414dcc into main Apr 10, 2026
5 checks passed
@hryhoriiK97 hryhoriiK97 deleted the fix/android-autogrow-scroll-flicker branch April 10, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant