Skip to content

Instantly share code, notes, and snippets.

@werelax
Created January 25, 2012 16:51
Show Gist options
  • Save werelax/1677252 to your computer and use it in GitHub Desktop.
Save werelax/1677252 to your computer and use it in GitHub Desktop.
ScrollPagination with two divs
# Inside the inbox page
outer = $('.left-column')
inner = $('.headers')
offset = inner.height() - outer.height() - 50
scroll_pos = outer.scrollTop()
if scroll_pos > offset
# The scroll bar is at the end!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment