Skip to content

How can I use scrollTo to scroll <OverlayScrollbarsComponent/> using javascript? #496

Answered by KingSora
lumenwrites asked this question in Q&A
Discussion options

You must be logged in to vote

@lumenwrites good day :)

Please try out:

overlayScrollbarsComponentRef.current?.osInstance().elements().viewport.scrollTo(0, 0);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lumenwrites
Comment options

Answer selected by lumenwrites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants