mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:56:36 +08: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…
Reference in New Issue
Block a user