diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-02 09:28:08 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-02 09:28:08 +0100 |
commit | 0a9b0cc99000b42374f209c2d2f886bd8b3f733e (patch) | |
tree | 726cf16bb0bdd833ad46af025781fa1c0dab8b22 /js/directive/NewsScroll.js | |
parent | bb12afb075e1b3e2bcb356ee19d6c9fc7a94be6b (diff) |
fix #671
Diffstat (limited to 'js/directive/NewsScroll.js')
-rw-r--r-- | js/directive/NewsScroll.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/directive/NewsScroll.js b/js/directive/NewsScroll.js index d4a46a79f..c101526bf 100644 --- a/js/directive/NewsScroll.js +++ b/js/directive/NewsScroll.js @@ -49,7 +49,7 @@ app.directive('newsScroll', function ($timeout, ITEM_AUTO_PAGE_SIZE, articles.each(function(index, article) { var item = $(article); - if (item.position().top <= -50) { + if (item.position().top <= -10) { ids.push(parseInt(item.data('id'), 10)); } else { return false; |