jamesflorentino/nanoScrollerJS — pull request #122 by callmevlad (2013-03-06 19:14:16+00:00)
Title: Allow setting document and window context explicitly

Currently, nanoScroller uses the main `document` and `window` objects to wire up events. This causes problems when a scrollable area is instantiated inside an iframe by a parent frame.

This change allows passing a specific document and window context via options so that scroll/resize/mousemove events are be wired up correctly.