Skip to content

How to use with custom scrollbar library (e.g. simplebar, OverlayScrollbars, etc)? #504

Answered by jaymakes11
jaymakes11 asked this question in Q&A
Discussion options

You must be logged in to vote

This was much easier than I anticipated.

The trick seems to be updating the getScrollElement callback from this:

getScrollElement: do() document.getElementById('my-scroll-container-id')

to this:

getScrollElement: do() simpleBar.getScrollElement()

Replies: 3 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by jaymakes11
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants