kamlekar/slim-scroll

No way to move the scrollbar to the right / off of the scrollable content

Opened this issue · 0 comments

.slimScrollBar is on top of the content which can interfere with the user's ability to read and digest the content. The scrollbar should at least have an option to appear outside (right next to) the scrollable content, preferably configurable to the pixel similar to the height option that slimScroll() accepts.

Overwriting the right css property of .slimScrollBar with for example -10px !important does in fact move the scrollbar to the right of the content, but because .slimScrollBar is position: absolute; and its parent div is overflow: hidden, the scrollbar will simply not be visible, thus defeating the purpose of beautiful scrollbars. The only (hacky) "fix" I've found is to apply margin-right to the div element, but this disrupts the layout's width (hence: hacky).

Thanks for your time!