From 4ee32e73ed2501d00ae9c776c8db4c17daf9f221 Mon Sep 17 00:00:00 2001 From: graphical-iain Date: Tue, 17 Dec 2013 09:16:42 -0500 Subject: [PATCH] Update jquery.smoothwheel.js --- src/jquery.smoothwheel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);