Created
December 9, 2011 09:12
-
-
Save kersten/1450841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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