We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adce6d9 commit 7414dccCopy full SHA for 7414dcc
1 file changed
android/src/main/java/com/swmansion/enriched/markdown/input/EnrichedMarkdownInputView.kt
@@ -169,6 +169,16 @@ class EnrichedMarkdownInputView(
169
170
override fun performClick(): Boolean = super.performClick()
171
172
+ // In auto-grow mode (scrollEnabled=false) TextView's internal bringPointIntoView
173
+ // scrolls content before Fabric has resized the view, causing a visible flicker.
174
+ override fun scrollTo(
175
+ x: Int,
176
+ y: Int,
177
+ ) {
178
+ if (!scrollEnabled) return
179
+ super.scrollTo(x, y)
180
+ }
181
+
182
override fun canScrollVertically(direction: Int): Boolean = scrollEnabled && super.canScrollVertically(direction)
183
184
override fun canScrollHorizontally(direction: Int): Boolean = scrollEnabled && super.canScrollHorizontally(direction)
0 commit comments