Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/jquery.smoothwheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down Expand Up @@ -150,4 +154,4 @@
};


})(jQuery);
})(jQuery);