jamesflorentino / nanoScrollerJS

A jQuery plugin that offers a simplistic way of implementing Lion OS scrollbars.
http://jamesflorentino.github.com/nanoScrollerJS/
MIT License
2.69k stars 503 forks source link

Trouble with IE7 & IE8 and jQuery.noConflict() #77

Closed jbleviel closed 12 years ago

jbleviel commented 12 years ago

Hello,

First of all, congratulations, it's a nice lightweight plugin.

I'm experiencing an issue on our website with IE7 & IE8 navigators : scrollbar never appears. You can scrolldown, up... But you cannot see pane. The only thing that make it works it to remove jQuery.noConflict().

Here it is my header js file reference which is not working unless I remove jQuery.noConflict();

Hope you'll be able to fix it (unless I missed something).

kristerkari commented 12 years ago

I haven't used jQuery.noConflict(), but at least for me it works with the nanoScroller demo if I make sure that all my jQuery code is inside an Immediately-Invoked Function Expression like this:

(function($) {
$(function(){

  $('.nano').nanoScroller({
    preventPageScrolling: true
  });
  $("#main").find('.description').load("readme.html", function(){
    $(".nano").nanoScroller();
  });

});
})(jQuery);
jbleviel commented 12 years ago

Thanks for answer. I try this right now and I let you know.

-----Message d'origine----- De : Krister Kari [mailto:reply@reply.github.com] Envoyé : mardi 17 juillet 2012 20:48 À : LEVIEL Jean-Benoit Objet : Re: [nanoScrollerJS] Trouble with IE7 & IE8 and jQuery.noConflict() (#77)

I haven't used jQuery.noConflict(), but at least for me it works with the nanoScroller demo if I make sure that all my jQuery code is inside an Immediately-Invoked Function Expression like this:

(function($) {
$(function(){

  $('.nano').nanoScroller({
    preventPageScrolling: true
  });
  $("#main").find('.description').load("readme.html", function(){
    $(".nano").nanoScroller();
  });

});
})(jQuery);

Reply to this email directly or view it on GitHub: https://github.com/jamesflorentino/nanoScrollerJS/issues/77#issuecomment-7045404

kristerkari commented 12 years ago

I don't think that there is anything for us to fix here, so closing...