summaryrefslogtreecommitdiffstats
path: root/js/app
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-07-05 14:19:12 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-07-05 14:19:20 +0200
commit24114249513c15c69c5f240c9210a49c589bdd19 (patch)
treeea83640c4c781fea1a60fba7f25331628cf4d9de /js/app
parent4e5ab402456426c8d620221554a46e8a88deaabf (diff)
make it possible to turn off mark read by scrolling
Diffstat (limited to 'js/app')
-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