mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
FIX: Do not consider hidden elements when wanting to load more
This commit is contained in:
parent
be8128b0c2
commit
f5c3199b38
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue