-
Hi, thank for really helpful library. I use I need to get element that actually scrolls. Its need to use it with for example How can i get it? |
Beta Was this translation helpful? Give feedback.
Answered by
KingSora
Nov 14, 2022
Replies: 1 comment 1 reply
-
Good day @krutoo
This will give you the I highly recommend to update to |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
krutoo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good day @krutoo
So for
overlayscrollbars-react
v0.3.0
and below (the ones compatible withv1
) you have to do this:ref
to the componentref.current.osInstance().getElements().viewport
This will give you the
viewport
element which is responsible for scrolling.I highly recommend to update to
v2
though.. (there the process is similar, just callelements()
instead ofgetElements()
)