smooth-scrollbar
smooth-scrollbar copied to clipboard
Firefox Horizontal scroll problem
Hi there, Great scrollbar in first place, many tkx! 👍
I'm having a problem with a horizontal scroll in Firefox. I have an offscreen element that is forcing the scrollbar to have an horizontal scrollbar. Is there any way to disable horizontal scroll ?
Thanks in advance, daniel
I'm afraid there's no option for that :(
Can you just set the offscreen element to absolute position to make it out of normal flow? (Or simply display: none
to remove it)
@idiotWu thank's for the quick response. The element is position: fixed, tryed absolute too, but no luck. it looks like because it is offscreen ( to the right ) the plugin assumes that it needs horizontal scroll :/ . Weird is that this only happens in Firefox, the other browsers are ok.
Will try to find a solution and post it here.
Thanks!
@Kum0ri I ran into the same issue as well. Here's a link to a CodePen that I made up quickly to show how to get around this.
https://codepen.io/bradjdouglas/pen/mLYebN?editors=1100
As you can see, in the 2nd section I have a box that overflows to the right. What I did was set overflow-x: hidden
on my content div. Hopefully, this helps!