From cb38efda8df21c1e98e5fbf2e4b794c39a0c1e9a Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 15 Aug 2012 02:20:57 +0200 Subject: fixed the shadow on the add folder/feed popup --- js/news.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/news.js b/js/news.js index df95479dc..8a82ceb0c 100644 --- a/js/news.js +++ b/js/news.js @@ -684,6 +684,7 @@ $(document).ready(function(){ var item = this; var itemOffset = $(this).position().top; if(itemOffset <= 0 || scrolled >= scrollHeight){ + // wait and check if the item is still under the top edge setTimeout(function(){ markItemAsRead(scrollArea, item);}, 1000); } }) @@ -695,7 +696,7 @@ $(document).ready(function(){ }); /** - * Marks an item as read + * Marks an item as read which is called by the timeout * @param item the dom item */ function markItemAsRead(scrollArea, item){ -- cgit v1.2.3