diff options
-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 7092dd2a4..d83317fcb 100644 --- a/js/directive/NewsScroll.js +++ b/js/directive/NewsScroll.js @@ -31,7 +31,7 @@ app.directive('newsScroll', function ($timeout, ITEM_AUTO_PAGE_SIZE, // this is only reached when the item is not is // below the top and we didnt hit the factor yet so // autopage and break - if (item.position().top < 0) { + if (item[0].getBoundingClientRect().top < 0) { scope.$apply(scope.newsScrollAutoPage); break; } |