FIX: Do not consider hidden elements when wanting to load more

This commit is contained in:
Robin Ward 2014-03-07 14:22:04 -05:00
parent be8128b0c2
commit f5c3199b38

View File

@ -38,6 +38,9 @@ Discourse.Eyeline.prototype.update = function() {
elemBottom = elemTop + $elem.height(),
markSeen = false;
// Make sure the element is visible
if (!$elem.is(':visible')) return true;
// It's seen if...
// ...the element is vertically within the top and botom
if ((elemTop <= docViewBottom) && (elemTop >= docViewTop)) markSeen = true;