diff --git a/src/jquery.smoothwheel.js b/src/jquery.smoothwheel.js index 9624f4a..61edc5a 100644 --- a/src/jquery.smoothwheel.js +++ b/src/jquery.smoothwheel.js @@ -68,6 +68,10 @@ currentY = -container.scrollTop(); updateScrollTarget(delta); + + //add an additional height declaration to allow for elements that + //change height after inial page load. + minScrollTop = container.get(0).clientHeight - container.get(0).scrollHeight; } /* @@ -150,4 +154,4 @@ }; -})(jQuery); \ No newline at end of file +})(jQuery);