From 15749f86a0b29cec15a913f417b0725a564eca92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 14 Aug 2018 10:51:48 +0200 Subject: Scrolling & autopager fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- js/directive/NewsScroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3