How to use with custom scrollbar library (e.g. simplebar, OverlayScrollbars, etc)? #504
-
In my app "virtual" was working perfectly... spent a good long while working out small issues. It's implemented using vanilla JS (well, Imba, actually). I'm wanting overlay scrollbars. Attempting to implement https://github.com/Grsmto/simplebar now but am having issues getting it to work with "virtual". Am also considering https://github.com/KingSora/OverlayScrollbars. Any insight on getting "virtual" to work with one of these? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
This was much easier than I anticipated. The trick seems to be updating the getScrollElement: do() document.getElementById('my-scroll-container-id') to this: getScrollElement: do() simpleBar.getScrollElement() |
Beta Was this translation helpful? Give feedback.
-
when i use SimpleBar, the scroll seems to be stuck
When i use normal div, it don't have the stuck. |
Beta Was this translation helpful? Give feedback.
This was much easier than I anticipated.
The trick seems to be updating the
getScrollElement
callback from this:to this: