wduffy / jScroll

jScroll is a jQuery plugin that keeps an element in view when a user scrolls.
http://www.wduffy.co.uk/jScroll
73 stars 19 forks source link

Adds a 'max' option so one can limit scrolling to an arbitrary position. #9

Closed jakubpawlowicz closed 3 years ago

jakubpawlowicz commented 12 years ago

Here's an example:

var node1 = $(…)
var node2 = $(…)
node2.jScroll({
  max: function() {
    return node1.offset().top;
  }
});

Which won't allow scrolling past node1.

jakubpawlowicz commented 3 years ago

It's been so long for this PR so let's close it.