inuyaksa / jquery.nicescroll

nicescroll plugin for jquery - scrollbars like iphone/ipad
https://nicescroll.areaaperta.com/
3.6k stars 1.67k forks source link

On Chrome it was turning off default scrollbar for other elements #787

Open patrick-abc opened 5 years ago

patrick-abc commented 5 years ago

I use nicescroll for 2 div's (position:fixed). For initialization I set niceScroll to 2 Elements, one by ID, one by class.

jQuery("#main-content-scrollbar").niceScroll(niceScrollOptions);
jQuery(".navbar-container").niceScroll(niceScrollOptions);

So the scrollbar for these elements works fine on all tested Browsers. But on Chrome niceScroll was turning off the scrollbar for other elementes. So I have another div on the side, where is not added the nicScrollbar, there should be showing the Chrome default scrollbar. But it does not. It seems to be added a default niceScrollbar (not with my defined options, but with the default options).

patrick-abc commented 5 years ago

Strange thing, for now it works. In my project I have changed the divs of using vh to % for height. Now the niceScroll scrollbar was showed just on the defined elements. Eventually same background as issue https://github.com/inuyaksa/jquery.nicescroll/issues/786