mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

Background scroll #19

Closed tobias-r closed 10 years ago

tobias-r commented 10 years ago

Hi,

I was the one suggesting the scroll in the background whenever the container itself is scrolled to the end.

Now it is always like that. Would you think about making this configurable (an option)?

I think in some cases it's really useful, in some it isn't!

Thanks Tobi

mzubala commented 10 years ago

Ok, I'll think about it. Do you think it should be on or off by default?

tobias-r commented 10 years ago

Puh, tough question. I think if you got a scrollbar in a submenu or anything, content in background shouldn't be scrolled. However if you got a box in a long list, for example comments with a scrollbar (see Google Plus, they do it, check https://plus.google.com/+Nexus/posts) then it is crucial.

Default, hmmm, maybe default on and call option preventBackgrounScroll or anything?

mzubala commented 10 years ago

I added preventDefaultScroll option. By default it's set to false (background scrolling is enabled). If you set it to true it will disable background scrolling.

manchaary commented 9 years ago

Hello, Windows 8.1 " { preventDefaultScroll : true }" not working in chrome