mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
FIX: Do not consider hidden elements when wanting to load more
This commit is contained in:
parent
be8128b0c2
commit
f5c3199b38
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user