yui/yui3 — pull request #217 by rgrove (2012-08-08 20:46:05+00:00)
Title: Add node-scroll-info component

ScrollInfo is a Y.Node plugin that provides convenient events and methods related to scrolling. This could be used, for example, to implement infinite scrolling, or to lazy-load content based on the current scroll position. Performance is a key concern when executing code in response to scroll events, so ScrollInfo takes great care to be as efficient as possible.

ImageLoader could be refactored to use ScrollInfo, and it could be useful for ScrollView as well. It's currently used in production on SmugMug's search page, and Flickr has also expressed interest in using it.

### Running Locally

The built `node-scroll-info` module and updated `yui` and `loader` build files are intentionally not included in order to keep the diffs clean. Before testing these changes, you'll need to build them:

```bash
$ cd src/node-scroll-info && ant all
$ cd ../yui && ant all
```