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 502 forks source link

Fire scrollend even if no scrollbar available #219

Open czjvic opened 10 years ago

czjvic commented 10 years ago

My quick fix (line 502 - 505):

Before:

if (_this.prevScrollTop !== _this.maxScrollTop) {
   _this.$el.trigger('scrollend');                            
}  

After edit:

_this.$el.trigger('scrollend');