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

Optional offset value for 'scrollend' and 'scrolltop' events (feature request) #134

Open RonenA opened 11 years ago

RonenA commented 11 years ago

Useful for infinite scrolling

spacecdr commented 11 years ago

I would like to make the same thing... I was able to make it work by adding a value in the two "if" lines:

if(e.contentScrollTop>=e.maxScrollTop + 20)

20 stands for 20px, but this is working only when scroll by mousewheel (or trackpad), not when click on scrollbar... :(

spacecdr commented 11 years ago

Sorry, i meant:

if(e.contentScrollTop+20>=e.maxScrollTop)

Anyway, as i told you, this is not working while clicking the "empty scrollbar" :(