diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-14 10:51:48 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-14 10:51:48 +0200 |
commit | 15749f86a0b29cec15a913f417b0725a564eca92 (patch) | |
tree | 8cc1be77f7615c7b7ec29d6815950449b8373bf4 /js | |
parent | 2a115bd79f2e45348f81c554c81723578a53bb05 (diff) |
Scrolling & autopager fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to '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 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; } |