Skip to content

Instantly share code, notes, and snippets.

@kersten
Created December 9, 2011 09:12
Show Gist options
  • Save kersten/1450841 to your computer and use it in GitHub Desktop.
Save kersten/1450841 to your computer and use it in GitHub Desktop.
if (el.find('.lb-v-scrollbar').height() == (parseInt(el.find('.lb-v-scrollbar-slider').css('top')) + el.find('.lb-v-scrollbar-slider').height())
&& typeof(options.reachedBottom) == 'function'
&& !vEventFired
) {
vEventFired = true;
var self = $(this);
options.reachedBottom.apply($(this).children('.lb-content'), [function () {
getDimentions($(self).children('.lb-content'));
// Calculate the size of the scrollbars
reduceScrollbarsWidthHeight($(self).parent());
setSlidersHeight($(self).parent());
// Set variables needed to calculate scroll speed, etc.
setScrollRatios($(self).parent());
// prepare for next element
resetVars();
}]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment