From 320304c909dc12c14b53335a7f32550809c06178 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 29 May 2014 23:10:55 +0200 Subject: dont mark read on scroll --- js/controller/ContentController.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'js/controller/ContentController.js') diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 164fa8662..804c898e5 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -11,6 +11,8 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResource, SettingsResource, data) { 'use strict'; + this.isAutoPagingEnabled = true; + ItemResource.clear(); // distribute data to models based on key @@ -70,4 +72,12 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data) { console.log(itemIds); }; + this.autoPagingEnabled = () => { + return this.isAutoPagingEnabled; + }; + + this.markReadEnabled = () => { + return !SettingsResource.get('preventReadOnScroll'); + }; + }); \ No newline at end of file -- cgit v1.2.3