andru26
3/30/2017 - 9:26 PM

Check if container si scrolled to botttom

Check if container si scrolled to botttom

function gridScroll(e){
  var elem = $(e.currentTarget);
  if (elem[0].scrollHeight - elem.scrollTop() == elem.outerHeight()) 
  {
    console.log("bottom");
  }
}