mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

Scroll not working with CSS Transform Scale on Firefox #34

Open mbarwick83 opened 10 years ago

mbarwick83 commented 10 years ago

I have a DIV that's scaled back to about 0.65. In doing so, custom scroll won't work. It simply doesn't scroll at all. The issue is very similar to this user's problem on SO (diff plug-in), however for me the scroll bar just flickers and doesn't do anything.

http://stackoverflow.com/questions/20093804/custom-javascript-scrollbars-jscrollpane-with-transform-scale-error

Any ideas? Love your script, but may have to switch if this can't be fixed.

mbarwick83 commented 10 years ago

Any luck?

mzubala commented 10 years ago

The problem is:

I also encountered the same problem. The problem is that when applying the "Scale" function $.width() always returns the original value, but $.position() returns depending on the scale.

I don't have time to address this currently. Perhaps this workaround could work: try applying a scrollbar to an outer container and scale transform to an inner container. Let me know if this works.

mbarwick83 commented 10 years ago

Does not work. No luck on the container. Worse then the current state...