rochal/jQuery-slimScroll — pull request #31 by nsfmc (2012-09-11 20:32:57+00:00)
Title: constrained scrollTo

Hi there,

i noticed when using the scroll: parameter for slimScroll that the default scroll: behavior allowed you to scroll outside the edge of the containing slimScroll (and also always scrolled relative to the current position), so i added a new option to scrollContent (`isScrollTo`) which allows you to scroll the slimscroll to a certain spot (but no further than the bottom edge of the scrollable region).

I still have some other independent changes, but this seems to work just fine if you call

```js
$(elt).slimScroll({scrollTo: y})
```

thoughts? it may also be easier to fold this into the jump behavior but i have a feeling it might conflict with other folks' usage of the scroll parameter.

happy to answer any questions, though.