mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Do not consider hidden elements when wanting to load more
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user