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

fixing nested nanoscrollers regardless of initialization order #238

Closed loc closed 10 years ago

loc commented 10 years ago

Nested scrollbars are only supported if they are instantiated in order. This patch allows for more dynamic nested scrollbars.

Here is a fiddle of the "bug" on master: http://jsfiddle.net/78Yze/1/

Here is a fiddle of the patch: http://jsfiddle.net/WUzQ8/

kristerkari commented 10 years ago

Thanks! I'll try to review this asap.