smooth-scrollbar icon indicating copy to clipboard operation
smooth-scrollbar copied to clipboard

Firefox Horizontal scroll problem

Open Kum0ri opened this issue 7 years ago • 3 comments

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

Kum0ri avatar Apr 03 '17 13:04 Kum0ri

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 avatar Apr 03 '17 14:04 idiotWu

@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 avatar Apr 03 '17 15:04 Kum0ri

@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!

bradleyDouglas avatar May 23 '18 20:05 bradleyDouglas