inuyaksa / jquery.nicescroll

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

Strange problem with niceScroll! #687

Open Haliiliya opened 7 years ago

Haliiliya commented 7 years ago

Hello dear sir. After inserting some php codes to page niceScroll working for few seconds and then it stopped! I cann't share my codes here. can you come to my teamviewer ? to show you the problem? If yes. i will give you my teamviewer information.

Haliiliya commented 7 years ago

?

inuyaksa commented 7 years ago

Sorry, I can't give you realtime support. Please describe more about your page. Do you have some errors on console?

I give you some advice.

When you add dynamic content, you need notify nicecroll about content changing with $("div").getNiceScroll().resize();

When you remove/replace DOM attached to nicescroll, you need to reinit nicescroll: $("div").niceScroll();

passariello commented 5 years ago

Try

$('YourDiv').resize(function() { $('YourDiv').getNiceScroll().resize(); });

and / or

$('YourDiv').change(function(){ $('YourDiv').getNiceScroll().resize(); });

rejowanahmed commented 4 years ago

try

$(".scrollbar").mouseover(function(){ $(".scrollbar").getNiceScroll().resize(); });