You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I render a bunch of Markdown elements in a ScrollView and want to programatically scroll to the newest one (at the bottom) using onAppear and ScrollViewProxy.scrollTo.
Unfortunately currently this seems to scroll only a small amount which happens because at the time of the scroll, the element containing the markdown is empty (or at least a smaller than final size).
I currently have to add a delay of one whole second before I trigger the scroll which just looks goofy.
Is there any way to speed up the resizing of the markdown element so that I can scroll as soon as the element is added?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I render a bunch of Markdown elements in a ScrollView and want to programatically scroll to the newest one (at the bottom) using
onAppear
andScrollViewProxy.scrollTo
.Unfortunately currently this seems to scroll only a small amount which happens because at the time of the scroll, the element containing the markdown is empty (or at least a smaller than final size).
I currently have to add a delay of one whole second before I trigger the scroll which just looks goofy.
Is there any way to speed up the resizing of the markdown element so that I can scroll as soon as the element is added?
Beta Was this translation helpful? Give feedback.
All reactions