New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrollbar position #17
Comments
Good day! The Long story short: If your container has a fixed height and width (everything except Maybe there is another way to achieve your goal. - Can you tell me exactly why the scrollbars have to be outside? A small example fiddle would be also great so I can determine what markup you have. Basically the plugin doesn't care where the scrollbars are. If you really need the scrollbars outside of the container you've still the chance to do it with javascript: https://jsfiddle.net/sko4rwmk/1/ Oh and could you please send me the reddit thread? I'd like to read it! :) |
Thank you for taking the time to discuss this edge case with me :) I believe the biggest reason why I went with positioning the scrollbar outside the content area was because I already had to structure the scrollbar that way using the malihu library. malihu: springerinn.com I did a quick attempt to target body as the scroll container, but there is a lot of CSS baked in that I'd have to sort through and update to get the rest of the layout working again. So the easiest solution was to change the Your JS approach is compelling, I might end up going that route instead. Thank you :) Here's the reddit link, although it looks like you've already had a chance to see it: |
Alright, no problem pal :) If you need more help, please don't hesitate to open a issue! |
I have a layout that requires the scrollbar to be positioned on the outside of the scrollable content. If I add
right: -4.24vw;
ortransform: translateX(4.24vw);
theoverflow: hidden !important
class on the.os-host-overflow
element cuts off the scrollbar. I manually overwrote this CSS style and it looks ok in chrome 64 (Mac OSX), but I haven't tested in other browsers yet.I found a link to this library on reddit and decided to give it a try. So far it handles scrolling noticeably better than the malihu custom scrollbar plugin. The malihu plugin would occasionally lurch the scroll position while scrolling.
The text was updated successfully, but these errors were encountered: