summaryrefslogtreecommitdiffstats
path: root/js/app/directives/newsitemscroll.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/app/directives/newsitemscroll.coffee')
-rw-r--r--js/app/directives/newsitemscroll.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/app/directives/newsitemscroll.coffee b/js/app/directives/newsitemscroll.coffee
index 5d8345999..f0cf69543 100644
--- a/js/app/directives/newsitemscroll.coffee
+++ b/js/app/directives/newsitemscroll.coffee
@@ -37,7 +37,9 @@ angular.module('News').directive 'newsItemScroll', ['$rootScope', 'Config',
scrolling = true
, Config.ScrollTimeout
- if markingRead
+ # dont scroll if the value is set to false or there is already
+ # a mark read request
+ if markingRead and elm.attr('news-item-scroll') == 'true'
markingRead = false
setTimeout ->
markingRead = true