Conversation
Added support via the new option allowOverlayBars to disable the plugin when OS bars overlay the content. This corresponds with how most modern browsers handle scrollbars, it is often the effect you are going for when you use this plugin and if its already acceptable why run this code. Now you don't have to.
|
Hi Andrew. Thank You for your commit and your idea. I'm going to use existing function getBrowserScrollSize for detecting if native scrollbar overlays content - it will take only 2 rows to change in current script. Currently I'm working on hiding of native scrollbar in such cases, but your idea is great. Thank You again. |
|
I was thinking about your changes. If I understood correctly, this option is used to avoid using custom scrollbar if native scrollbars overlay content - on mobile devices, and under Mac OS (maybe Linux too). Correct? |
|
Yes that is the idea. Be careful to test properly using getBrowserScrollSize, I tried that already and it did not cover my use case. Specifically with MacOS if you go to System Preferences > General and set Show Scroll Bars to Always, reloading the page should show custom scrollbars. Switching it to "Only when scrolling" should show native scrollbars. In light of this I also think the code to return a size of 0 for webkit becomes an issue. https://github.com/gromo/jquery.scrollbar/blob/master/jquery.scrollbar.js#L674 |
|
Hi Andrew. Can I contact you by email, skype or any other way? |
|
andrew dot lutegers at gmail |
Added support via the new option allowOverlayBars to disable the plugin when OS bars overlay the content. This corresponds with how most modern browsers handle scrollbars, it is often the effect you are going for when you use this plugin and if its already acceptable why run this code. Now you don't have to.